5 #trap 'rm -rf -- "$tmp"' EXIT
8 cat >"$tmp"/pacman.conf
<<EOF
10 HoldPkg = pacman-git glibc
14 Include = /etc/pacman.d/mirrorlist
16 Include = /etc/pacman.d/mirrorlist
18 Include = /etc/pacman.d/mirrorlist
20 SigLevel = Optional TrustAll
24 cat >"$tmp"/PKGBUILD
<<EOF
35 # create local repository
36 repo-add
"$tmp/$tmp_uid".db.
tar
38 # issue 513: PKGDEST (environment) should be ignored
39 env
-C "$tmp" -u AUR_REPO
-u AUR_DBROOT
-u AUR_DBEXT
-u MAKEPKG PKGDEST
=/does
/not
/exist \
40 aur build
--no-sync -d "$tmp_uid" --pacman-conf "$tmp"/pacman.conf
41 tar -tf "$tmp"/foo-1-1-any.pkg.
tar.zst
43 # vim: set et sw=4 sts=4 ft=sh:\n