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-fetch | |
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-fetch')
-rw-r--r-- | common/hooks/do-fetch/00-distfiles.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 43b9c66b625..ebe0f88772d 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -44,11 +44,12 @@ contents_cksum() { *.txt) cursufx="txt";; *.7z) cursufx="7z";; *.gem) cursufx="gem";; + *.crate) cursufx="crate";; *) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";; esac case ${cursufx} in - tar|txz|tbz|tlz|tgz) + tar|txz|tbz|tlz|tgz|crate) cksum=$(tar xf "$curfile" --to-stdout | sha256sum | awk '{print $1}') if [ $? -ne 0 ]; then msg_error "$pkgver: extracting $curfile to pipe.\n" |