[arch-commits] Commit in httpbin/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri Mar 11 08:53:03 UTC 2016
Date: Friday, March 11, 2016 @ 09:53:03
Author: fyan
Revision: 166072
upgpkg: httpbin 0.4.1-1
Modified:
httpbin/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-03-11 08:50:18 UTC (rev 166071)
+++ PKGBUILD 2016-03-11 08:53:03 UTC (rev 166072)
@@ -3,8 +3,7 @@
pkgbase=httpbin
pkgname=(httpbin python2-httpbin)
-pkgver=0.4.0
-_commit=c688307868a2ace65b29b1e6d43b593ca154c913
+pkgver=0.4.1
pkgrel=1
pkgdesc="HTTP Request and Response Service"
arch=('any')
@@ -13,7 +12,7 @@
makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask'
'python-markupsafe' 'python2-markupsafe' 'python-itsdangerous' 'python2-itsdangerous'
'python-six' 'python2-six' 'python-decorator' 'python2-decorator' 'git')
-source=("git+https://github.com/Runscope/httpbin.git#commit=$_commit")
+source=("git+https://github.com/Runscope/httpbin.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
@@ -21,18 +20,18 @@
}
build() {
- cd "$srcdir/httpbin"
+ cd "$srcdir"/httpbin
LC_CTYPE=en_US.UTF-8 python setup.py build
- cd "$srcdir/httpbin-py2"
+ cd "$srcdir"/httpbin-py2
python2 setup.py build
}
check() {
- cd "$srcdir/httpbin"
+ cd "$srcdir"/httpbin
python test_httpbin.py
- cd "$srcdir/httpbin-py2"
+ cd "$srcdir"/httpbin-py2
python2 test_httpbin.py
}
@@ -40,9 +39,9 @@
depends=('python-flask' 'python-markupsafe' 'python-itsdangerous' 'python-six' 'python-decorator')
cd httpbin
- LC_CTYPE=en_US.UTF-8 python setup.py install -O1 --root="$pkgdir/"
+ LC_CTYPE=en_US.UTF-8 python setup.py install -O1 --root="$pkgdir"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-httpbin() {
@@ -49,9 +48,9 @@
depends=('python2-flask' 'python2-markupsafe' 'python2-itsdangerous' 'python2-six' 'python2-decorator')
cd httpbin-py2
- python2 setup.py install -O1 --root="$pkgdir/"
+ python2 setup.py install -O1 --root="$pkgdir"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list