aboutsummaryrefslogtreecommitdiffstats
path: root/main/lz4/APKBUILD
blob: 49eaa4af3e8af900fa23ac26ba05c1f9da336e6b (plain)
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
39
40
41
42
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lz4
pkgver=1.9.2
pkgrel=1
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
	CVE-2021-3520.patch
	"

# secfixes:
#   1.9.2-r1:
#     - CVE-2021-3520
#   1.9.2-r0:
#     - CVE-2019-17543

build() {
	make PREFIX="/usr"
}

check() {
	make 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="ae714c61ec8e33ed91359b63f2896cfa102d66b730dce112b74696ec5850e59d88bd5527173e01e354a70fbe8f036557a47c767ee0766bc5f9c257978116c3c1  lz4-1.9.2.tar.gz
29038d80c4399ded52b49e69d0f0d80bef8bf424e3540de366ef539706c8c1119784d6137c96130f131239d74a4c110dd9790cae5c9b17c102820446582c5637  CVE-2021-3520.patch"