35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# 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.3.2
|
|
pkgrel=1
|
|
pkgdesc='Zstandard - Fast real-time compression algorithm'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.zstd.net/'
|
|
license=('BSD')
|
|
depends=('zlib' 'xz' 'lz4')
|
|
makedepends=('gtest')
|
|
options=('staticlibs')
|
|
source=("https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('ac5054a3c64e6510bc1ae890d05e3d271cc33ceebc9d06ac9f08105766d2798a')
|
|
provides=('zstd')
|
|
conflicts=('zstd')
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
make CFLAGS="$CFLAGS -fPIC"
|
|
make zstdmt
|
|
make -C contrib/pzstd
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
make PREFIX="/usr" DESTDIR="$pkgdir/" install
|
|
install -D -m755 zstdmt "$pkgdir/usr/bin/zstdmt"
|
|
install -D -m755 contrib/pzstd/pzstd "$pkgdir/usr/bin/pzstd"
|
|
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|