2021-02-26 23:50:00 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# The builder user is already created in the rootfs
|
|
|
|
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export PKG_URL=$1
|
|
|
|
|
|
|
|
# Upgrade
|
2021-03-01 12:43:07 +00:00
|
|
|
pacman -Suy --noconfirm
|
2021-02-26 23:50:00 +00:00
|
|
|
|
2021-03-06 03:41:56 +00:00
|
|
|
# gnupg dir permissions
|
|
|
|
chown -R "$BUILDUSER:$BUILDUSER" /.gnupg
|
|
|
|
|
2021-02-26 23:50:00 +00:00
|
|
|
# Workdir
|
|
|
|
cd /buildroot
|
|
|
|
|
|
|
|
# Build the damn thing
|
2021-03-06 03:41:56 +00:00
|
|
|
sudo -u "$BUILDUSER" GNUPGHOME="/.gnupg" makepkg -s --noconfirm -L
|