diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-06 21:17:06 +0100 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-03-06 21:17:06 +0100 |
commit | 8378fcc076b44e46203e9fc1a50d57bac73a1d8c (patch) | |
tree | be90108b8eb3c255a161ab7b06e4f2d1b79c6a6f /scripts/01_arch_build.sh | |
parent | fix appimage build (diff) | |
download | librewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.tar.gz librewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.tar.bz2 librewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.zip |
Partial rewrite of build process
Switching to an Arch based build process for easier maintenance and
using specific runners for tasks where that might be necessary.
Right now, parent/child pipelines for somewhat parallel builds for
different architectures / semi-independent pak-builds don't seem to
properly work yet due to `trigger:` not being recognized when it should,
so that's not yet implemented.
Diffstat (limited to 'scripts/01_arch_build.sh')
-rwxr-xr-x | scripts/01_arch_build.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/01_arch_build.sh b/scripts/01_arch_build.sh new file mode 100755 index 0000000..e8d428b --- /dev/null +++ b/scripts/01_arch_build.sh @@ -0,0 +1,12 @@ +#!/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 --skippgpcheck |