[arch-commits] Commit in (3 files)

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


    Date: Thursday, September 12, 2019 @ 18:58:31
  Author: alucryd
Revision: 509763

add lib32-brotli for new lib32-libsoup

Added:
  lib32-brotli/
  lib32-brotli/trunk/
  lib32-brotli/trunk/PKGBUILD

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

Added: lib32-brotli/trunk/PKGBUILD
===================================================================
--- lib32-brotli/trunk/PKGBUILD	                        (rev 0)
+++ lib32-brotli/trunk/PKGBUILD	2019-09-12 18:58:31 UTC (rev 509763)
@@ -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