diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2017-08-22 01:54:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-25 23:38:51 +0000 |
commit | c30ff3f2d86c9d4bac58699c21332097302547eb (patch) | |
tree | f5bf84d26b7d7ff9596400cd976432933fecb9d6 /main/lz4/APKBUILD | |
parent | 92b64279e573eb24f99f4c5381ecd50a87866ca1 (diff) | |
download | aports-c30ff3f2d86c9d4bac58699c21332097302547eb.tar.bz2 aports-c30ff3f2d86c9d4bac58699c21332097302547eb.tar.xz |
main/lz4: upgrade to 1.8.0
Diffstat (limited to 'main/lz4/APKBUILD')
-rw-r--r-- | main/lz4/APKBUILD | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/main/lz4/APKBUILD b/main/lz4/APKBUILD index 140facfbe4..682c2b8124 100644 --- a/main/lz4/APKBUILD +++ b/main/lz4/APKBUILD @@ -1,24 +1,44 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=lz4 -pkgver=1.7.5 +pkgver=1.8.0 pkgrel=0 pkgdesc="LZ4 is lossless compression algorithm with fast decoder @ multiple GB/s per core." url="https://github.com/lz4/lz4" arch="all" license="BSD" -subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" -source="$pkgname-$pkgver.tar.gz::https://github.com/lz4/lz4/archive/v$pkgver.tar.gz" +checkdepends="diffutils" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tests::tests" +source="$pkgname-$pkgver.tar.gz::https://github.com/lz4/lz4/archive/v$pkgver.tar.gz + parallel-tests.patch + fix-man-dir.patch + " builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" - make PREFIX="/usr" || return 1 + make PREFIX="/usr" +} + +check() { + cd "$builddir" + # too many parallel processes cause tests to fail + # https://github.com/lz4/lz4/issues/385#issuecomment-323869527 + make -j4 test +} + +tests() { + cd "$builddir"/tests + mkdir -p "$subpkgdir"/usr/share/lz4 + rm -f *.c COPYING Makefile .gitignore + cp -rf "$builddir"/tests "$subpkgdir"/usr/share/lz4 } package() { cd "$builddir" - make PREFIX="/usr" DESTDIR="$pkgdir" install || return 1 + make PREFIX="/usr" DESTDIR="$pkgdir" install } -sha512sums="b4e5b17fe06805e676608e636a45f0b480b79a02c6b7ffce84dc4d607861cb2652b2852493ab9d9249e7caeae6f00b6834801fdc39f58d901cbc1c7347915295 lz4-1.7.5.tar.gz" +sha512sums="aea46d4a900a3ede7dd7b498ee938ecd98397d3277c5b3a85b4236a44777cba85cd68a2f32c993b872afda96c5dafe0cb3dd391101fe8181e17c9f48884c1535 lz4-1.8.0.tar.gz +b22ca4422b621d9cf0d9ad0786ac28966d50bf502c067a5902b7f89527529e8c895bfbafd349fb0729aa2dbb3687bbb4b4d669d18bb4c6cc80118f31453369cc parallel-tests.patch +6c00f7257437a110aea6490e6261fc97aa15f80ff923285bbe2948ca4a3069949473b304980e9b089da41219f471ea7ce9104a6e714b3b2732a230d3191beb62 fix-man-dir.patch" |