blob: 94a52494984f9525d33b69b39904d7b92c0713c8 (
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
45
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Johan Förberg <johan@forberg.se>
pkgname=zstd-static
_pkgname=${pkgname%-static}
pkgver=1.4.4
pkgrel=1
pkgdesc='Zstandard - Fast real-time compression algorithm'
arch=('x86_64')
url='http://www.zstd.net/'
license=('BSD')
depends=('zlib' 'xz' 'lz4')
makedepends=('cmake')
options=('staticlibs')
source=("https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz")
sha256sums=('a364f5162c7d1a455cc915e8e3cf5f4bd8b75d09bc0f53965b0c9ca1383c52c8')
provides=('zstd')
conflicts=('zstd')
build() {
cd "$srcdir/$_pkgname-$pkgver/build"
mkdir builddir
cd builddir
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
../cmake
make
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
pushd "build/builddir"
pushd lib
make DESTDIR="$pkgdir/" install
popd; pushd programs
make DESTDIR="$pkgdir" install
popd; popd
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
check() {
cd "$srcdir/$_pkgname-$pkgver"
make check
}
|