initial import

This commit is contained in:
Guillaume Horel 2017-07-31 11:13:48 -04:00
commit 9e7eb17c56
2 changed files with 54 additions and 0 deletions

19
.SRCINFO Normal file
View File

@ -0,0 +1,19 @@
pkgbase = zstd-static
pkgdesc = Zstandard - Fast real-time compression algorithm
pkgver = 1.3.0
pkgrel = 1
url = http://www.zstd.net/
arch = i686
arch = x86_64
license = BSD
makedepends = gtest
depends = zlib
depends = xz
provides = zstd
conflicts = zstd
options = staticlibs
source = https://github.com/facebook/zstd/archive/v1.3.0.tar.gz
sha1sums = 1b254a1a7092886c7e17957b5f672b8c1b972b08
pkgname = zstd-static

35
PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# 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.0
pkgrel=1
pkgdesc='Zstandard - Fast real-time compression algorithm'
arch=('i686' 'x86_64')
url='http://www.zstd.net/'
license=('BSD')
depends=('zlib' 'xz')
makedepends=('gtest')
options=('staticlibs')
source=("https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz")
sha1sums=('1b254a1a7092886c7e17957b5f672b8c1b972b08')
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"
install -D -m644 PATENTS "$pkgdir/usr/share/licenses/$pkgname/PATENTS"
}