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

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-zstd/repos/multilib-x86_64/
  lib32-zstd/repos/multilib-x86_64/PKGBUILD
    (from rev 408974, lib32-zstd/trunk/PKGBUILD)

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

Copied: lib32-zstd/repos/multilib-x86_64/PKGBUILD (from rev 408974, 
lib32-zstd/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD                            (rev 0)
+++ multilib-x86_64/PKGBUILD    2018-11-19 22:20:38 UTC (rev 408975)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor:  Bartłomiej Piotrowski <bpiotrow...@archlinux.org>
+# Contributor: Andrzej Giniewicz <ggi...@gmail.com>
+# Contributor: Johan Förberg <jo...@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:

Reply via email to