abuild: support for unpacking .tar.xz

This commit is contained in:
Natanael Copa 2010-08-12 07:08:29 +00:00
parent af22a92fa6
commit 030fa98065

View File

@ -239,6 +239,9 @@ default_unpack() {
msg "Unpacking $s..."
unlzma -c "$s" | tar -C "$srcdir" -x \
|| return 1;;
*.tar.xz)
msg "Unpacking $s..."
unxz -c "$s" | tar -C "$srcdir" -x || return 1;;
*.zip)
msg "Unpacking $s..."
unzip "$s" -d "$srcdir" || return 1;;