aboutsummaryrefslogtreecommitdiff
path: root/docker/bin/buildpackage.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-14 16:17:07 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-07-14 16:17:07 +0200
commit7f698caa7cacdd1c8b2744cfa2cf49e05c66aed9 (patch)
tree1a34e24aea969b680a1d23dbe518dc767a656bf4 /docker/bin/buildpackage.sh
parent1bfc28926f4da9af6a783a4f0603c39f1627553f (diff)
downloadaurbuilder-7f698caa7cacdd1c8b2744cfa2cf49e05c66aed9.tar.gz
uding podman now
Diffstat (limited to 'docker/bin/buildpackage.sh')
-rwxr-xr-xdocker/bin/buildpackage.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/docker/bin/buildpackage.sh b/docker/bin/buildpackage.sh
index ace52fd..a1dd8c3 100755
--- a/docker/bin/buildpackage.sh
+++ b/docker/bin/buildpackage.sh
@@ -3,6 +3,8 @@
echo "BUILDING: $PACKAGE_NAME"
echo "PACKAGER: $PACKAGER"
+INTERMED_DEST="/pkgdest"
+
cd /workdir || exit 1
while read -r NAME BASE VER _; do
@@ -15,12 +17,13 @@ while read -r NAME BASE VER _; do
continue
fi
- sudo -u aurbuilder git clone "https://aur.archlinux.org/$BASE.git" "$BASE"
+ sudo --user=aurbuilder \
+ git clone "https://aur.archlinux.org/$BASE.git" "$BASE"
cd "$BASE" || exit 1
- sudo -u aurbuilder CARCH="$ARCH" PACKAGER="$PACKAGER" PKGDEST="/pkgout/" \
+ sudo -u aurbuilder CARCH="$ARCH" PACKAGER="$PACKAGER" PKGDEST="$INTERMED_DEST" \
makepkg --force --syncdeps --noconfirm --install
- #cp ./*.pkg.tar.zst /pkgout
- test -n "$CHOWN" && sudo chown "$CHOWN" "/pkgout/${OUTNAME}"*
+ cp --no-preserve=ownership "$INTERMED_DEST/"*.pkg.tar.zst /pkgout
+ #test -n "$CHOWN" && sudo chown "$CHOWN" "/pkgout/${OUTNAME}"*
done <<< "$(getpackage.py "$PACKAGE_NAME")"