desktop/python-werkzeug/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

53 lines
1.3 KiB
Bash

pkgname=('python3-werkzeug' 'python2-werkzeug')
pkgver=0.11.4
pkgrel=1
pkgdesc='Swiss Army knife of Python web development'
url='http://werkzeug.pocoo.org/'
arch=('any')
license=('custom:BSD')
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-pytest' 'python2-pytest' 'python3-requests' 'python2-requests')
source=("http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-$pkgver.tar.gz")
sha256sums=('e48fb7e3f2bb5a740dd9a666624699a4d83e2e028555f9c46bcc8ecfc2cd8c32')
prepare() {
cp -r "Werkzeug-$pkgver" "python3-werkzeug-$pkgver"
cp -r "Werkzeug-$pkgver" "python2-werkzeug-$pkgver"
}
build_python3-werkzeug() {
cd "$pkgname-$pkgver"
python3 setup.py build
}
build_python2-werkzeug() {
cd "$pkgname-$pkgver"
python2 setup.py build
}
#check() {
# cd "python-werkzeug-$pkgver"
# python setup.py test
#
# cd "python-werkzeug-$pkgver"
# p3ython2 setup.py test
#}
package_python3-werkzeug() {
depends+=('python3')
cd "$pkgname-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-werkzeug() {
depends+=('python2')
cd "$pkgname-$pkgver"
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}