[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Nov 2 06:52:26 UTC 2016


    Date: Wednesday, November 2, 2016 @ 06:52:26
  Author: felixonmars
Revision: 194318

addpkg: python-brotlipy 0.6.0-1

Added:
  python-brotlipy/
  python-brotlipy/repos/
  python-brotlipy/trunk/
  python-brotlipy/trunk/PKGBUILD

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

Added: python-brotlipy/trunk/PKGBUILD
===================================================================
--- python-brotlipy/trunk/PKGBUILD	                        (rev 0)
+++ python-brotlipy/trunk/PKGBUILD	2016-11-02 06:52:26 UTC (rev 194318)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-brotlipy
+pkgname=('python-brotlipy' 'python2-brotlipy')
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Python binding to the Brotli library'
+arch=('i686' 'x86_64')
+license=('MIT')
+url='https://github.com/python-hyper/brotlipy'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis'
+              'python2-hypothesis')
+source=("git+https://github.com/python-hyper/brotlipy.git#tag=v$pkgver"
+        "git+https://github.com/google/brotli.git")
+md5sums=('SKIP'
+         'SKIP')
+
+prepare() {
+  cd brotlipy
+  git submodule init
+  git config submodule."libbrotli".url "$srcdir"/brotli
+  git submodule update
+
+  rm -r libbrotli/python
+
+  cp -a "$srcdir"/brotlipy{,-py2}
+}
+
+build() {
+  cd "$srcdir"/brotlipy
+  python setup.py build
+
+  cd "$srcdir"/brotlipy-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/brotlipy
+  python setup.py ptr
+
+  cd "$srcdir"/brotlipy-py2
+  python2 setup.py ptr
+}
+
+package_python-brotlipy() {
+  depends=('python-cffi')
+
+  cd brotlipy
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-brotlipy() {
+  depends=('python2-cffi')
+
+  cd brotlipy-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:


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



More information about the arch-commits mailing list