this is a bit simpler

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2021-03-06 06:41:56 +03:00
parent 1f2b2e3c6d
commit cba181007b
4 changed files with 47 additions and 27 deletions

View File

@@ -8,10 +8,11 @@ export PKG_URL=$1
# Upgrade
pacman -Suy --noconfirm
# gnupg dir permissions
chown -R "$BUILDUSER:$BUILDUSER" /.gnupg
# Workdir
chown -R builder:builder /.gnupg
cd /buildroot
# Build the damn thing
sudo -u builder git clone "$PKG_URL" .
sudo -u builder GNUPGHOME="/.gnupg" makepkg -s --noconfirm -L
sudo -u "$BUILDUSER" GNUPGHOME="/.gnupg" makepkg -s --noconfirm -L