diff --git a/pkgbuild.sh b/pkgbuild.sh index b6db600..9344b7f 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -35,7 +35,7 @@ installAurDeps() { importPrivateKey() { echo "$gpgPrivateKey" > private.key gpgFlags=("--batch" "--pinentry-mode" "loopback" "--passphrase") - sudo -H -u nobody gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key + sudo -Hu calbuilder gpg "${gpgFlags[@]}" "$gpgPassphrase" --import private.key rm private.key sedCommand="gpg ${gpgFlags[*]} \"$gpgPassphrase\"" makepkgSigFile="/usr/share/makepkg/integrity/generate_signature.sh" @@ -45,9 +45,9 @@ importPrivateKey() { buildPackage() { if [ -n "$gpgPrivateKey" ] && [ -n "$gpgPublicKey" ]; then importPrivateKey - sudo -H -u nobody makepkg -s --sign --key "$gpgPublicKey" --noconfirm + sudo -Hu calbuilder makepkg -s --sign --key "$gpgPublicKey" --noconfirm else - sudo -u nobody makepkg -s --noconfirm + sudo -Hu calbuilder makepkg -s --noconfirm fi }