[arch-commits] Commit in (brotli brotli/repos brotli/trunk brotli/trunk/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Jun 6 11:23:25 UTC 2017


    Date: Tuesday, June 6, 2017 @ 11:23:25
  Author: felixonmars
Revision: 234933

addpkg: brotli 0.6.0-1

Added:
  brotli/
  brotli/repos/
  brotli/trunk/
  brotli/trunk/PKGBUILD

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

Added: brotli/trunk/PKGBUILD
===================================================================
--- brotli/trunk/PKGBUILD	                        (rev 0)
+++ brotli/trunk/PKGBUILD	2017-06-06 11:23:25 UTC (rev 234933)
@@ -0,0 +1,73 @@
+# $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=brotli
+pkgname=('brotli' 'python-brotli' 'python2-brotli' 'brotli-testdata')
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Brotli compression library'
+arch=('i686' 'x86_64')
+license=('MIT')
+url='https://github.com/google/brotli'
+depends=('gcc-libs')
+makedepends=('cmake' 'python' 'python2')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz")
+sha256sums=('69cdbdf5709051dd086a2f020f5abf9e32519eafe0ad6be820c667c3a9c9ee0f')
+
+prepare() {
+  cp -a brotli-$pkgver{,-py2}
+  mkdir -p build
+}
+
+build() {
+  cd "$srcdir"/brotli-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/brotli-$pkgver-py2
+  python2 ./setup.py build
+
+  cd "$srcdir"/build
+  cmake ../brotli-$pkgver -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="/usr/lib"
+  make
+}
+
+check() {
+  cd brotli-$pkgver
+  make test
+}
+
+package_brotli() {
+  cd build
+  make DESTDIR="$pkgdir" install
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-brotli() {
+  depends=('python')
+
+  cd brotli-$pkgver
+
+  python setup.py install --skip-build -O1 --root="$pkgdir"
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-brotli() {
+  depends=('python2')
+
+  cd brotli-$pkgver-py2
+
+  python2 setup.py install --skip-build -O1 --root="$pkgdir"
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_brotli-testdata() {
+  depends=()
+
+  cd brotli-$pkgver
+  install -dm755 "$pkgdir"/usr/share/brotli
+  cp -a tests/testdata "$pkgdir"/usr/share/brotli/
+  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


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



More information about the arch-commits mailing list