[arch-commits] Commit in zstd/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 10 11:58:34 UTC 2017


    Date: Sunday, December 10, 2017 @ 11:58:33
  Author: bpiotrowski
Revision: 312041

Cosmetic changes

Modified:
  zstd/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++++++++++++++++---------------
 1 file changed, 22 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-10 11:49:10 UTC (rev 312040)
+++ PKGBUILD	2017-12-10 11:58:33 UTC (rev 312041)
@@ -1,5 +1,6 @@
 # $Id$
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
 # Contributor: Johan Förberg <johan at forberg.se>
 
 pkgname=zstd
@@ -6,25 +7,31 @@
 pkgver=1.3.2
 pkgrel=1
 pkgdesc='Zstandard - Fast real-time compression algorithm'
-arch=('x86_64')
+arch=(x86_64)
 url='http://www.zstd.net/'
-license=('BSD', 'GPL2')
-depends=('zlib' 'xz' 'lz4')
-makedepends=('gtest')
-source=("https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz")
+license=(BSD GPL2)
+depends=(zlib xz lz4)
+makedepends=(gtest)
+source=(zstd-$pkgver.tar.gz::https://github.com/facebook/zstd/archive/v${pkgver}.tar.gz)
 sha1sums=('2478765996a25232abb5e38707fc77deeaaaab37')
 
 build() {
-    cd "$srcdir/$pkgname-$pkgver"
-    make
-    make zstdmt
-    make -C contrib/pzstd
+  cd "$srcdir/$pkgname-$pkgver"
+  make
+  make zstdmt
+  make -C contrib/pzstd
 }
 
+check() {
+  cd $pkgname-$pkgver
+  make -C tests test-zstd
+  make -C contrib/pzstd test
+}
+
 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"
+  cd "$srcdir/$pkgname-$pkgver"
+  make PREFIX=/usr DESTDIR="$pkgdir/" install
+  install -Dm755 zstdmt "$pkgdir/usr/bin/zstdmt"
+  install -Dm755 contrib/pzstd/pzstd "$pkgdir/usr/bin/pzstd"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list