[arch-commits] Commit in brotli/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 19:59:44 UTC 2019
Date: Friday, October 25, 2019 @ 19:59:43
Author: felixonmars
Revision: 519672
archrelease: copy trunk to community-staging-x86_64
Added:
brotli/repos/community-staging-x86_64/
brotli/repos/community-staging-x86_64/PKGBUILD
(from rev 519671, brotli/trunk/PKGBUILD)
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
Copied: brotli/repos/community-staging-x86_64/PKGBUILD (from rev 519671, brotli/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-25 19:59:43 UTC (rev 519672)
@@ -0,0 +1,75 @@
+# 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.7
+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=('a82362aa36d2f2094bca0b2808d9de0d57291fb3a4c29d7c0ca0a37e73087ec5ac4df299c8c363e61106fccf2fe7f58b5cf76eb97729e2696058ef43b1d3930a')
+
+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