diff options
Diffstat (limited to 'arch/01_build.sh')
-rwxr-xr-x | arch/01_build.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/01_build.sh b/arch/01_build.sh new file mode 100755 index 0000000..90dbcb3 --- /dev/null +++ b/arch/01_build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +pacman --noconfirm -Syu --needed base-devel +# this is a very ugly fix for recent makepkg-5.1-chmod-shenanigans, which mess up the build process in docker +sed -E -i 's/^chmod a-s \"\$BUILDDIR\"$/# chmod a-s \"\$BUILDDIR\"/' `which makepkg` +echo 'nobody ALL=(ALL) NOPASSWD: /usr/bin/pacman' >> /etc/sudoers +mkdir -p /home/nobody && chown -R nobody /home/nobody +usermod -d /home/nobody nobody +# we need to un-expire the account, otherwise PAM will complain +usermod -e '' nobody +chown -R nobody . +# makepkg will not run as root +sudo -u nobody -E -H makepkg --noconfirm --nosign --syncdeps --cleanbuild |