Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-19 09:38:37 +0100
committerErich Eckner <git@eckner.net>2020-02-19 09:39:53 +0100
commitd7654586a32d368119056716f2e01706da058949 (patch)
treed47a8ec5b4d62d46961091c9b4a66b3118ae08c5
parentcb6484fe4538e34490a44661d8579c370cccea0b (diff)
allow PKGEXT to be set from the environment
-rw-r--r--archbuild.in2
-rw-r--r--makechrootpkg.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/archbuild.in b/archbuild.in
index 5b98976..32f0d03 100644
--- a/archbuild.in
+++ b/archbuild.in
@@ -48,7 +48,7 @@ while getopts 'hcr:' arg; do
esac
done
-check_root SOURCE_DATE_EPOCH,SRCDEST,SRCPKGDEST,PKGDEST,LOGDEST,MAKEFLAGS,PACKAGER,GNUPGHOME
+check_root SOURCE_DATE_EPOCH,SRCDEST,SRCPKGDEST,PKGDEST,LOGDEST,MAKEFLAGS,PACKAGER,GNUPGHOME,PKGEXT
# Pass all arguments after -- right to makepkg
makechrootpkg_args+=("${@:$OPTIND}")
diff --git a/makechrootpkg.in b/makechrootpkg.in
index dfea18c..56830e2 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -178,6 +178,9 @@ prepare_chroot() {
grep -q "^$x" "$copydir/etc/makepkg.conf" && continue
echo "$x" >>"$copydir/etc/makepkg.conf"
done
+ if [ -n "${PKGEXT}" ]; then
+ sed -i 's/^PKGEXT=.*/PKGEXT='"'${PKGEXT}'"'/' "$copydir/etc/makepkg.conf"
+ fi
cat > "$copydir/etc/sudoers.d/builduser-pacman" <<EOF
builduser ALL = NOPASSWD: /usr/bin/pacman