Date: Wednesday, April 4, 2018 @ 14:22:23
  Author: felixonmars
Revision: 314117

archrelease: copy trunk to community-testing-x86_64

Added:
  brotli/repos/community-testing-x86_64/
  brotli/repos/community-testing-x86_64/PKGBUILD
    (from rev 314116, brotli/trunk/PKGBUILD)

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

Copied: brotli/repos/community-testing-x86_64/PKGBUILD (from rev 314116, 
brotli/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-04-04 14:22:23 UTC (rev 314117)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: TingPing <tingp...@tingping.se>
+# Contributor: Guillaume Horel <guillaume.ho...@gmail.com>
+
+pkgbase=brotli
+pkgname=('brotli' 'python-brotli' 'python2-brotli' 'brotli-testdata')
+pkgver=1.0.3
+pkgrel=1
+pkgdesc='Brotli compression library'
+arch=('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";)
+sha512sums=('93adcf437d730ac403e444285ac8aefbb2c8a6b5e1b064e8ee33684c067287a8159e0ee73d2217c167881e87da73fa494792d963a15508fd42b2ac4a5b52823c')
+
+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
+}

Reply via email to