[arch-commits] Commit in python-hpack/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Feb 2 16:02:51 UTC 2016
Date: Tuesday, February 2, 2016 @ 17:02:51
Author: fyan
Revision: 159989
upgpkg: python-hpack 2.1.0-1
Modified:
python-hpack/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-02-02 15:49:25 UTC (rev 159988)
+++ PKGBUILD 2016-02-02 16:02:51 UTC (rev 159989)
@@ -3,35 +3,34 @@
pkgbase=python-hpack
pkgname=(python-hpack python2-hpack)
-_pkgname=hpack
-pkgver=2.0.1
+pkgver=2.1.0
pkgrel=1
pkgdesc="Pure-Python HPACK header compression"
arch=('any')
url="http://hyper.rtfd.org/"
license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver::https://github.com/Lukasa/hpack/archive/v${pkgver}.tar.gz")
-sha512sums=('dd014e2e08c3d7cc0e216cc1d18c95e55838e2bf4b7e706b54b0093140750c2cdb76944d14b78dae1320e27028c0be9dd73b66535bf8b02ca78615e4fe241133')
+source=("git+https://github.com/Lukasa/hpack.git#tag=v$pkgver")
+sha512sums=('SKIP')
prepare() {
- cp -a $_pkgname-$pkgver{,-py2}
+ cp -a hpack{,-py2}
}
build() {
- cd $_pkgname-$pkgver
+ cd hpack
python setup.py build
- cd ../$_pkgname-$pkgver-py2
+ cd ../hpack-py2
python2 setup.py build
}
check() {
- cd $_pkgname-$pkgver
+ cd hpack
python setup.py ptr
- cd ../$_pkgname-$pkgver-py2
+ cd ../hpack-py2
python2 setup.py ptr
}
@@ -38,7 +37,7 @@
package_python-hpack() {
depends=('python')
- cd $_pkgname-$pkgver
+ cd hpack
python setup.py install -O1 --root "${pkgdir}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -47,9 +46,8 @@
package_python2-hpack() {
depends=('python2')
- cd $_pkgname-$pkgver-py2
+ cd hpack-py2
python2 setup.py install -O1 --root "${pkgdir}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
More information about the arch-commits
mailing list