aboutsummaryrefslogtreecommitdiff
path: root/arch/01_build.sh
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2020-03-28 23:15:41 +0100
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2020-03-28 23:15:41 +0100
commitb409944faddbfa5dc4e318ef14942f7d9847397a (patch)
tree619c0d52a6f50680554686a5ffec62fdd4c462fb /arch/01_build.sh
parentupdate eol gnome dependencies for flatpak (diff)
downloadlibrewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.tar.gz
librewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.tar.bz2
librewolf-linux-b409944faddbfa5dc4e318ef14942f7d9847397a.zip
de-Archify some aspects of builds and -scripts; allow to initiate separate steps manually; first attempt to build tarball on ubuntu 16.04
Diffstat (limited to 'arch/01_build.sh')
-rwxr-xr-xarch/01_build.sh13
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
bgstack15