diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-01-26 19:46:44 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-01-26 19:46:44 +0100 |
commit | 9e9fffc899c41eccd031212ef0af23c78fc7a1c6 (patch) | |
tree | d4876451b14d72dd720bde5a01eadf5842fb2aff /bin/buildpackage.sh | |
parent | d9656b75b47ffcf35be21d2f82ddb7c0b584e419 (diff) | |
download | aurbuilder-9e9fffc899c41eccd031212ef0af23c78fc7a1c6.tar.gz |
structure
Diffstat (limited to 'bin/buildpackage.sh')
-rwxr-xr-x | bin/buildpackage.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/buildpackage.sh b/bin/buildpackage.sh deleted file mode 100755 index ace52fd..0000000 --- a/bin/buildpackage.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -echo "BUILDING: $PACKAGE_NAME" -echo "PACKAGER: $PACKAGER" - -cd /workdir || exit 1 - -while read -r NAME BASE VER _; do - echo "$NAME $VER for $ARCH" - OUTNAME="$NAME-$VER-$ARCH.pkg" - - # Only build when needed - if [ ! "$FORCE_REBUILD" = "yes" ] && compgen -G "/pkgout/${OUTNAME}*"; then - echo "$NAME $VER ($ARCH) is already built. Skipping." - continue - fi - - sudo -u aurbuilder git clone "https://aur.archlinux.org/$BASE.git" "$BASE" - cd "$BASE" || exit 1 - - sudo -u aurbuilder CARCH="$ARCH" PACKAGER="$PACKAGER" PKGDEST="/pkgout/" \ - makepkg --force --syncdeps --noconfirm --install - - #cp ./*.pkg.tar.zst /pkgout - test -n "$CHOWN" && sudo chown "$CHOWN" "/pkgout/${OUTNAME}"* -done <<< "$(getpackage.py "$PACKAGE_NAME")" |