diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2023-07-16 19:01:54 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2023-07-16 19:01:54 +0200 |
commit | d75adf324cb1badb832b7c65bf9ffbaafe115bc1 (patch) | |
tree | e0a029035c7f8267e477e571f29f1e887cafb893 /docker/bin/buildpackage.sh | |
parent | 7f698caa7cacdd1c8b2744cfa2cf49e05c66aed9 (diff) | |
download | aurbuilder-d75adf324cb1badb832b7c65bf9ffbaafe115bc1.tar.gz |
move docker dir
Diffstat (limited to 'docker/bin/buildpackage.sh')
-rwxr-xr-x | docker/bin/buildpackage.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/docker/bin/buildpackage.sh b/docker/bin/buildpackage.sh deleted file mode 100755 index a1dd8c3..0000000 --- a/docker/bin/buildpackage.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -echo "BUILDING: $PACKAGE_NAME" -echo "PACKAGER: $PACKAGER" - -INTERMED_DEST="/pkgdest" - -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 --user=aurbuilder \ - git clone "https://aur.archlinux.org/$BASE.git" "$BASE" - cd "$BASE" || exit 1 - - sudo -u aurbuilder CARCH="$ARCH" PACKAGER="$PACKAGER" PKGDEST="$INTERMED_DEST" \ - makepkg --force --syncdeps --noconfirm --install - - cp --no-preserve=ownership "$INTERMED_DEST/"*.pkg.tar.zst /pkgout - #test -n "$CHOWN" && sudo chown "$CHOWN" "/pkgout/${OUTNAME}"* -done <<< "$(getpackage.py "$PACKAGE_NAME")" |