allow building without zstd

This commit is contained in:
Ella Stanforth 2022-06-15 13:10:17 +00:00
parent 120954fb04
commit 79904a2018

View file

@ -191,7 +191,11 @@ _p() {
cd "$srcdir" cd "$srcdir"
_genmeta > "$pkgdir/usr/share/iglupkg/$pkgname$cross" _genmeta > "$pkgdir/usr/share/iglupkg/$pkgname$cross"
cd "$pkgdir" cd "$pkgdir"
tar --owner=0 --group=0 -cf ../$pkgname$cross.$pkgver.tar.zst * -I zstd if command -V zstd; then
tar --owner=0 --group=0 -cf ../$pkgname$cross.$pkgver.tar.zst * -I zstd
else
tar --owner=0 --group=0 -cf ../$pkgname$cross.$pkgver.tar *
fi
} }
if [ -z "$to_run" ]; then if [ -z "$to_run" ]; then