index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-19 09:38:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-06-07 06:34:13 +0200 |
commit | 93df780d3420f3f1f4abd4b9261378ae6ad06646 (patch) | |
tree | 57c0f5f746e4f57bfde782f507164fa0b3cdc9d0 | |
parent | a17c9c6a703901bff12779ab3b5bebde5194c617 (diff) |
-rw-r--r-- | archbuild.in | 2 | ||||
-rw-r--r-- | makechrootpkg.in | 4 |
diff --git a/archbuild.in b/archbuild.in index e6cf19a..ad7036e 100644 --- a/archbuild.in +++ b/archbuild.in @@ -54,7 +54,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 126d1da..8e570e4 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -170,6 +170,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 @@ -324,6 +327,7 @@ done umask 0022 ORIG_HOME=$HOME +PKGEXT=$PKGEXT IFS=: read -r _ _ _ _ _ HOME _ < <(getent passwd "${SUDO_USER:-$USER}") load_makepkg_config HOME=$ORIG_HOME |