From 79904a20180b48cdfabb6394ee367b7be834a9e6 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Wed, 15 Jun 2022 13:10:17 +0000 Subject: [PATCH] allow building without zstd --- iglupkg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iglupkg.sh b/iglupkg.sh index 400dd39..e7cdc41 100755 --- a/iglupkg.sh +++ b/iglupkg.sh @@ -191,7 +191,11 @@ _p() { cd "$srcdir" _genmeta > "$pkgdir/usr/share/iglupkg/$pkgname$cross" 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