builds.sr.ht: images/archlinux: skip compression of AUR packages in install() v1 PROPOSED

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/%3C50e501dd23faaa61414e7d88bdeb6a9d%40dille.cc%3E/mbox | git am -3
Learn more about email & git

[PATCH builds.sr.ht] images/archlinux: skip compression of AUR packages Export this patch

All AUR packages installed in the install() step are first built
by makepkg, which by defaults compresses them after building them.

This patch explicitly skips the compression step by temporarily
setting the extension of newly built packages to .pkg.tar.

The extension is only changed temporarily, and this patch has no
effect on any makepkg run by the user in its build script after
the install() step ends.
 images/archlinux/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/images/archlinux/functions b/images/archlinux/functions
index b1657cb..6cae71e 100644
--- a/images/archlinux/functions
+++ b/images/archlinux/functions
@@ -16,7 +16,7 @@ boot() {
 install() {
 	shift 1
-	guest_ssh -p $port build@localhost EDITOR=true yay \
+	guest_ssh -p $port build@localhost EDITOR=true PKGEXT=.pkg.tar yay \
 		--needed --noconfirm --noprovides -Syu "$@"

To git.sr.ht:~sircmpwn/builds.sr.ht
   fc9a192..e6d7370  master -> master
 * [new tag]         0.47.8 -> 0.47.8
View this thread in the archives