From 7019ab4922093d321f4444d1404718b8186c750a Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 28 Feb 2022 23:47:40 -0300 Subject: [PATCH] Add buildPackage() --- pkgbuild.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 283c836..fef9eb9 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -6,6 +6,10 @@ setPermissions() { chmod -R a+rw . } +buildPackage() { + sudo -u nobody makepkg -s --noconfirm +} + exportPackageFiles() { sudo -u nobody makepkg --printsrcinfo > .SRCINFO exportFile "srcInfo" ".SRCINFO" @@ -56,7 +60,7 @@ runScript() { cd "${INPUT_PKGDIR:-.}" oldFiles=$(find -H "$PWD" -not -path '*.git*') - sudo -u nobody makepkg -s --noconfirm + buildPackage exportPackageFiles namcapAnalysis