[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Mon Nov 19 22:20:21 UTC 2018


    Date: Monday, November 19, 2018 @ 22:20:19
  Author: anthraxx
Revision: 408974

addpkg: lib32-zstd 1.3.7-1

Added:
  lib32-zstd/
  lib32-zstd/repos/
  lib32-zstd/trunk/
  lib32-zstd/trunk/PKGBUILD

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Added: lib32-zstd/trunk/PKGBUILD
===================================================================
--- lib32-zstd/trunk/PKGBUILD	                        (rev 0)
+++ lib32-zstd/trunk/PKGBUILD	2018-11-19 22:20:19 UTC (rev 408974)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Johan Förberg <johan at forberg.se>
+
+_pkgname=zstd
+pkgname=lib32-zstd
+pkgver=1.3.7
+pkgrel=1
+pkgdesc='Zstandard - Fast real-time compression algorithm (32-bit)'
+url='https://www.zstd.net/'
+arch=('x86_64')
+license=('BSD' 'GPL2')
+depends=('zstd' 'lib32-zlib' 'lib32-xz' 'lib32-lz4')
+makedepends=('gtest')
+source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.gz)
+sha256sums=('3277f236df0ca6edae01ae84e865470000c5a3484588fd5bc3d869877fd3573d')
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+  make
+  make zstdmt
+  make -C contrib/pzstd
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  make check
+  make -C contrib/pzstd test
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  make \
+    PREFIX=/usr \
+    LIBDIR=/usr/lib32 \
+    PKGCONFIGDIR=/usr/lib32/pkgconfig \
+    DESTDIR="${pkgdir}" \
+    install
+  rm -rf "${pkgdir}"/usr/{share,include,bin}
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list