[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 10 15:35:51 UTC 2017


    Date: Friday, November 10, 2017 @ 15:35:50
  Author: felixonmars
Revision: 266119

addpkg: brotli06 0.6.0-1

Added:
  brotli06/
  brotli06/repos/
  brotli06/trunk/
  brotli06/trunk/PKGBUILD

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

Added: brotli06/trunk/PKGBUILD
===================================================================
--- brotli06/trunk/PKGBUILD	                        (rev 0)
+++ brotli06/trunk/PKGBUILD	2017-11-10 15:35:50 UTC (rev 266119)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: 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>
+
+pkgbase=brotli06
+pkgname=(brotli06 brotli06-testdata)
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Brotli compression library - legacy 0.6.x version'
+arch=('i686' 'x86_64')
+license=('MIT')
+url='https://github.com/google/brotli'
+depends=('gcc-libs')
+makedepends=('cmake' 'python' 'python2')
+source=("brotli-$pkgver.tar.gz::https://github.com/google/brotli/archive/v$pkgver.tar.gz")
+sha512sums=('36caa277790efeb5bff0fdc090cdcf00fd9995c4e81a60ed31d36af2e13848ec1afe5d84e6926eebbee013525191e9404e112cb7fbede16097221c5bc3dfb5d5')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../brotli-$pkgver -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="/usr/lib/brotli06"
+  make
+}
+
+check() {
+  cd brotli-$pkgver
+  make test
+}
+
+package_brotli06() {
+  cd build
+  make DESTDIR="$pkgdir" install
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  install -dm755 "$pkgdir"/usr/include/brotli06
+  mv "$pkgdir"/usr/include/brotli "$pkgdir"/usr/include/brotli06/
+
+  for _so in libbrotlicommon libbrotlidec libbrotlienc; do
+    mv "$pkgdir"/usr/lib/brotli06/$_so.so.$pkgver "$pkgdir"/usr/lib/
+    ln -sf ../$_so.so.$pkgver "$pkgdir"/usr/lib/brotli06/$_so.so
+  done
+
+  mv "$pkgdir"/usr/bin/bro{,-0.6}
+
+  sed -e 's|/include$|/include/brotli06|' -i "$pkgdir"/usr/lib/brotli06/pkgconfig/*.pc
+}
+
+package_brotli06-testdata() {
+  depends=()
+
+  cd brotli-$pkgver
+  install -dm755 "$pkgdir"/usr/share/brotli06
+  cp -a tests/testdata "$pkgdir"/usr/share/brotli06/
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: brotli06/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property


More information about the arch-commits mailing list