diff options
author | Rasmus Thomsen <rasmus.thomsen@protonmail.com> | 2018-10-31 21:11:01 +0000 |
---|---|---|
committer | maxice8 <30738253+maxice8@users.noreply.github.com> | 2018-11-02 11:59:03 +0000 |
commit | a8f008f21c401be1331f6376a289eb6a889690b8 (patch) | |
tree | e884472b70b2e78b203e4e5a3475673b55997ab0 /common/hooks/do-extract | |
parent | 67d2381243176e752989ec1d80d362351047f134 (diff) | |
download | void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar.gz void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar.bz2 void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar.lz void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar.xz void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.tar.zst void-packages-a8f008f21c401be1331f6376a289eb6a889690b8.zip |
hook/do-extract: support extracting .crate files
Diffstat (limited to 'common/hooks/do-extract')
-rw-r--r-- | common/hooks/do-extract/00-distfiles.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/hooks/do-extract/00-distfiles.sh b/common/hooks/do-extract/00-distfiles.sh index c221bad9292..2e802b97eb5 100644 --- a/common/hooks/do-extract/00-distfiles.sh +++ b/common/hooks/do-extract/00-distfiles.sh @@ -56,6 +56,7 @@ hook() { *.txt) cursufx="txt";; *.7z) cursufx="7z";; *.gem) cursufx="gem";; + *.crate) cursufx="crate";; *) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";; esac @@ -66,7 +67,7 @@ hook() { fi case ${cursufx} in - txz|tbz|tlz|tgz) + txz|tbz|tlz|tgz|crate) tar -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C $extractdir if [ $? -ne 0 ]; then msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n" |