blob: a29a34458dc56decdf9267c742b0af999bf2babd (
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
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=lz4-static
_pkgname="${pkgname%-static}"
pkgver=1.9.3
pkgrel=1
pkgdesc='Extremely fast compression algorithm (static version)'
arch=('x86_64')
url='http://www.lz4.org/'
license=('GPL2')
checkdepends=('diffutils')
depends=('glibc')
source=("https://github.com/lz4/lz4/archive/v$pkgver.tar.gz")
sha256sums=('030644df4611007ff7dc962d981f390361e6c97a34e5cbc393ddfbe019ffe2c1')
options=('staticlibs')
provides=('lz4')
conflicts=('lz4')
build() {
# do not use the main makefile, it calls sub make with -e
# exported CFLAGS by makepkg break the version. see FS#50071
cd $_pkgname-$pkgver
make -C lib PREFIX=/usr CFLAGS="$CFLAGS -fPIC"
make -C programs PREFIX=/usr lz4 lz4c
}
check() {
rm -f passwd.lz4
$_pkgname-$pkgver/programs/lz4 /etc/passwd passwd.lz4
$_pkgname-$pkgver/programs/lz4 -d passwd.lz4 passwd
diff -q /etc/passwd passwd
rm passwd
}
package() {
cd $_pkgname-$pkgver
make install PREFIX=/usr DESTDIR="$pkgdir"
}
# vim:set ts=2 sw=2 et:
|