[arch-commits] Commit in python-uritemplate/trunk (PKGBUILD)
Andrzej Giniewicz
aginiewicz at archlinux.org
Fri Oct 28 13:00:06 UTC 2016
Date: Friday, October 28, 2016 @ 13:00:05
Author: aginiewicz
Revision: 193898
upgpkg: python-uritemplate 3.0.0-1
python-uritemplate: new upstream release
Modified:
python-uritemplate/trunk/PKGBUILD
----------+
PKGBUILD | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-28 12:29:48 UTC (rev 193897)
+++ PKGBUILD 2016-10-28 13:00:05 UTC (rev 193898)
@@ -3,15 +3,15 @@
pkgbase=python-uritemplate
pkgname=('python2-uritemplate' 'python-uritemplate')
-pkgver=0.6
-pkgrel=2
+pkgver=3.0.0
+pkgrel=1
pkgdesc="a Python implementation of RFC6570"
arch=('any')
-url="https://github.com/uri-templates/uritemplate-py/"
-license=('Apache')
+url="http://uritemplate.rtfd.org/"
+license=('Apache' 'BSD')
makedepends=('python2-setuptools' 'python-setuptools')
-source=("https://pypi.python.org/packages/source/u/uritemplate/uritemplate-${pkgver}.tar.gz")
-md5sums=('ecfc1ea8d62c7f2b47aad625afae6173')
+source=("https://github.com/sigmavirus24/uritemplate/archive/${pkgver}.tar.gz")
+md5sums=('e4c7f960a3e768b094e98c2c4cf77371')
prepare() {
cd "$srcdir"
@@ -21,7 +21,7 @@
sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
+ -i $(find . -name '*.py' | grep -v old)
}
build() {
@@ -40,6 +40,9 @@
cd "$srcdir"/uritemplate-py2-${pkgver}
python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE.APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.APACHE
+ install -Dm644 LICENSE.BSD "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.BSD
}
package_python-uritemplate() {
@@ -48,5 +51,7 @@
cd "$srcdir"/uritemplate-${pkgver}
python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE.APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.APACHE
+ install -Dm644 LICENSE.BSD "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.BSD
}
-
More information about the arch-commits
mailing list