[arch-commits] Commit in brotli/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Thu Jul 5 01:50:19 UTC 2018
Date: Thursday, July 5, 2018 @ 01:50:19
Author: eschwartz
Revision: 352273
archrelease: copy trunk to community-staging-x86_64
Added:
brotli/repos/community-staging-x86_64/
brotli/repos/community-staging-x86_64/PKGBUILD
(from rev 352272, brotli/trunk/PKGBUILD)
----------+
PKGBUILD | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
Copied: brotli/repos/community-staging-x86_64/PKGBUILD (from rev 352272, brotli/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-05 01:50:19 UTC (rev 352273)
@@ -0,0 +1,76 @@
+# $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=1.0.5
+pkgrel=2
+pkgdesc='Brotli compression library'
+arch=('x86_64')
+license=('MIT')
+url='https://github.com/google/brotli'
+depends=('gcc-libs')
+makedepends=('cmake' 'python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz")
+sha512sums=('703cad94c7f250133d2cfe222f3183612c7649b184bba218907b805f423568046d42695f33acf7da95daf684be118c9d631cfa5706e5a195b611c716db4c839a')
+
+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
+ python setup.py test
+ cd "$srcdir"/brotli-$pkgver-py2
+ python2 setup.py 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
+}
More information about the arch-commits
mailing list