From 800ded9aac3cb1d735609748a3967af3532d0cd9 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 7 Nov 2022 00:11:50 +0100 Subject: semi-working --- bin/buildpackage.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'bin/buildpackage.sh') 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")" -- cgit v1.2.3