forked from Spark/builder
19 lines
407 B
Bash
Executable File
19 lines
407 B
Bash
Executable File
#!/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
|
|
pacman -Suy --noconfirm
|
|
|
|
# gnupg dir permissions
|
|
chown -R "$BUILDUSER:$BUILDUSER" /.gnupg
|
|
|
|
# Workdir
|
|
cd /buildroot
|
|
|
|
# Build the damn thing
|
|
sudo -u "$BUILDUSER" GNUPGHOME="/.gnupg" makepkg -s --noconfirm -L
|