[arch-commits] Commit in lib32-brotli (3 files)

Maxime Gauduin alucryd at archlinux.org
Thu Sep 12 18:58:42 UTC 2019


    Date: Thursday, September 12, 2019 @ 18:58:41
  Author: alucryd
Revision: 509764

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-brotli/repos/
  lib32-brotli/repos/multilib-x86_64/
  lib32-brotli/repos/multilib-x86_64/PKGBUILD
    (from rev 509763, lib32-brotli/trunk/PKGBUILD)

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

Copied: lib32-brotli/repos/multilib-x86_64/PKGBUILD (from rev 509763, lib32-brotli/trunk/PKGBUILD)
===================================================================
--- repos/multilib-x86_64/PKGBUILD	                        (rev 0)
+++ repos/multilib-x86_64/PKGBUILD	2019-09-12 18:58:41 UTC (rev 509764)
@@ -0,0 +1,65 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: TingPing <tingping at tingping.se>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=lib32-brotli
+pkgver=1.0.7
+pkgrel=1
+pkgdesc='Brotli compression library'
+arch=(x86_64)
+license=(MIT)
+url=https://github.com/google/brotli
+depends=(
+  brotli
+  lib32-gcc-libs
+)
+makedepends=(
+  cmake
+  git
+)
+source=(git+https://github.com/google/brotli.git#tag=d6d98957ca8ccb1ef45922e978bb10efca0ea541)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd brotli
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd build
+
+  export CC='gcc -m32'
+  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
+
+  cmake ../brotli \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib32
+  make
+}
+
+check() {
+  cd build
+
+  make test
+}
+
+package() {
+  cd build
+
+  make DESTDIR="$pkgdir" install
+  rm -rf "${pkgdir}"/usr/{bin,include}
+  install -dm 755 "${pkgdir}"/usr/share/licenses
+  ln -s brotli "${pkgdir}"/usr/share/licenses/lib32-brotli
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list