docker stuff

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2021-02-27 02:50:00 +03:00
parent d3fcb9b4ee
commit 22accf3f20
3 changed files with 48 additions and 0 deletions

17
build Executable file
View File

@@ -0,0 +1,17 @@
#!/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
# Workdir
chown builder:builder /buildroot
cd /buildroot
# Build the damn thing
sudo -u builder git clone "$PKG_URL" .
sudo -u builder makepkg -s --noconfirm -L