blob: 05badb0224567fe15b115edb93fd6607204e8536 (
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
43
44
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lz4
pkgver=1.9.1
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-dev $pkgname-doc $pkgname-libs $pkgname-tests:tests"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
CVE-2019-17543.patch
"
builddir="$srcdir"/$pkgname-$pkgver
# secfixes:
# 1.9.1-r1:
# - CVE-2019-17543
build() {
cd "$builddir"
make PREFIX="/usr"
}
check() {
cd "$builddir"
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() {
cd "$builddir"
make PREFIX="/usr" DESTDIR="$pkgdir" install
}
sha512sums="536cdeb6dd73b4769cf9501ad312b004ab01699758534b47ca2eddbc815fd374a3caba40cde36f73a7a70e134065836b733e2b0c023c31740b877ef9317ccf3e lz4-1.9.1.tar.gz
814a5319b220783e1f2c435797aada7a9aafee30b18ae850e293b0001068200b53620f668f8ef9c2822b2694020809c54a36671e26bae4fcebe11c903a4ba09f CVE-2019-17543.patch"
|