aboutsummaryrefslogtreecommitdiff
path: root/bin/buildpackage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/buildpackage.sh')
-rwxr-xr-xbin/buildpackage.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/bin/buildpackage.sh b/bin/buildpackage.sh
index 1de569b..4be1b3a 100755
--- a/bin/buildpackage.sh
+++ b/bin/buildpackage.sh
@@ -3,5 +3,16 @@
echo "BUILDING: $PACKAGE_NAME"
echo "Build Deps: $BUILD_ALL_AUR_DEPENDS"
-ls -l /db
-ls -l /pkgout
+cd /workdir || exit 1
+
+while read NAME BASE VER _; do
+ echo $NAME $BASE $VER
+
+ sudo -u aurbuilder git clone "https://aur.archlinux.org/$BASE.git" "$BASE"
+ cd "$BASE" || exit 1
+
+ # TODO: PKGDEST instead of copy
+ sudo -u aurbuilder makepkg --syncdeps --noconfirm --install
+
+ cp ./*.pkg.tar.zst /pkgout
+done <<< "$(getpackage.py "$PACKAGE_NAME")"