blob: 19cff7395af761cfe8a4478549e49d79254746f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lz4
pkgver=1.9.3
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-2-Clause GPL-2.0-only"
checkdepends="diffutils"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tests:tests"
source="$pkgname-$pkgver.tar.gz::https://github.com/lz4/lz4/archive/v$pkgver.tar.gz"
# secfixes:
# 1.9.2-r0:
# - CVE-2019-17543
build() {
make PREFIX="/usr"
}
check() {
# https://github.com/lz4/lz4/issues/957
make -j1 check
}
tests() {
cd "$builddir"/tests
mkdir -p "$subpkgdir"/usr/share/$pkgname
rm -f *.c COPYING Makefile .gitignore
cp -rf "$builddir"/tests "$subpkgdir"/usr/share/$pkgname
}
package() {
make PREFIX="/usr" DESTDIR="$pkgdir" install
}
sha512sums="c246b0bda881ee9399fa1be490fa39f43b291bb1d9db72dba8a85db1a50aad416a97e9b300eee3d2a4203c2bd88bda2762e81bc229c3aa409ad217eb306a454c lz4-1.9.3.tar.gz"
|