From 6c81e041e1bdede86b861e23f215bfd2b73aa0fd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 19 Feb 2020 09:38:37 +0100 Subject: allow PKGEXT to be set from the environment --- makechrootpkg.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index dfea18c..61e2f98 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" <