summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-28 10:55:38 +0200
committerMichał Górny <mgorny@gentoo.org>2022-10-01 19:19:33 +0200
commitb8faada55d7859484af013ee806ee5f996ee8445 (patch)
tree7a74577f3451780b1cd758a6fb0b17d776def8ef /eclass/unpacker.eclass
parentunpacker.eclass: Reuse _unpacker_get_decompressor for makeself (diff)
downloadgentoo-b8faada55d7859484af013ee806ee5f996ee8445.tar.gz
gentoo-b8faada55d7859484af013ee806ee5f996ee8445.tar.bz2
gentoo-b8faada55d7859484af013ee806ee5f996ee8445.zip
unpacker.eclass: Support all makeself "compression" methods
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/unpacker.eclass')
-rw-r--r--eclass/unpacker.eclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index f54d0c3626ab..3011f2fc44ad 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -262,6 +262,18 @@ unpack_makeself() {
XZ*)
suffix=xz
;;
+ Zstandard*)
+ suffix=zst
+ ;;
+ lzop*)
+ suffix=lzo
+ ;;
+ LZ4*)
+ suffix=lz4
+ ;;
+ "ASCII text"*)
+ decomp='base64 -d'
+ ;;
*)
die "Unknown filetype \"${filetype}\", for makeself ${src##*/} ('${ver}' +${skip})"
;;