diff options
author | Patrick Griffis | 2015-09-22 16:48:23 -0400 |
---|---|---|
committer | Patrick Griffis | 2015-09-22 16:48:23 -0400 |
commit | b5226beda97422d1f3983602fd6badb9dd664171 (patch) | |
tree | aa8f200c4705938f215c87dad447d7a74d0c548e | |
download | aur-b5226beda97422d1f3983602fd6badb9dd664171.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2ebad90278c6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = brotli + pkgdesc = Python compression library + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/google/brotli + arch = i686 + arch = x86_64 + license = Apache + makedepends = python + makedepends = python2 + source = brotli-0.2.0.tar.gz::https://github.com/google/brotli/archive/v0.2.0.tar.gz + sha256sums = 634d1089ee21b35e0ec5066cb5e44dd097e04e679e1e8c50bffa2b0dc77c2c29 + +pkgname = python-brotli + depends = python + +pkgname = python2-brotli + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f7dcf1eb3050 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: TingPing <tingping@tingping.se> + +pkgbase=brotli +pkgname=('python-brotli' 'python2-brotli') +pkgver=0.2.0 +pkgrel=1 +pkgdesc='Python compression library' +arch=('i686' 'x86_64') +license=('Apache') +url='https://github.com/google/brotli' +makedepends=('python' 'python2') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz") +sha256sums=('634d1089ee21b35e0ec5066cb5e44dd097e04e679e1e8c50bffa2b0dc77c2c29') + +build() { + cd "$pkgbase-$pkgver" + + msg 'Building Python 3...' + python ./setup.py build_ext + + msg 'Building Python 2...' + python2 ./setup.py build_ext +} + +check() { + cd "$pkgbase-$pkgver" + + msg 'Testing Python 3...' + python ./setup.py test + + msg 'Testing Python 2...' + python2 ./setup.py test +} + +package_python-brotli() { + depends=('python') + + cd "$pkgbase-$pkgver" + + python ./setup.py install --skip-build --root="$pkgdir/" +} + +package_python2-brotli() { + depends=('python2') + + cd "$pkgbase-$pkgver" + + python2 ./setup.py install --skip-build --root="$pkgdir/" +} |