diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-11-07 00:11:50 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-11-07 00:11:50 +0100 |
commit | 800ded9aac3cb1d735609748a3967af3532d0cd9 (patch) | |
tree | 0bb1860e3fb0b427e94ab9b7ca38fc98d334095a /bin/buildpackage.sh | |
parent | 99b401b5e89943795dd45ea323dd57f280273701 (diff) | |
download | aurbuilder-800ded9aac3cb1d735609748a3967af3532d0cd9.tar.gz |
semi-working
Diffstat (limited to 'bin/buildpackage.sh')
-rwxr-xr-x | bin/buildpackage.sh | 15 |
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")" |