builder/autobuilder/build
fbt d1b08a83be trash
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-06 07:41:02 +03:00

17 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
# Upgrade
pacman -Suy --noconfirm
# gnupg dir permissions
chown -R "$BUILDUSER:$BUILDUSER" /.gnupg
# Add sudo permissions for pacman to install dependencies
printf '%s ALL=(ALL) NOPASSWD: /usr/bin/pacman\n' "$BUILDUSER" > /etc/sudoers.d/builduser
# Workdir
cd /buildroot
# Build the damn thing
sudo -u "$BUILDUSER" GNUPGHOME="/.gnupg" makepkg "$@"