Add buildPackage()

This commit is contained in:
Santiago Lo Coco 2022-02-28 23:47:40 -03:00
parent 85f491514f
commit 7019ab4922
1 changed files with 5 additions and 1 deletions

View File

@ -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