mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
pkgbase=python-werkzeug
|
|
pkgname=('python3-werkzeug' 'python2-werkzeug')
|
|
pkgver=0.12.2
|
|
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=("https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz")
|
|
sha256sums=('58b77f7deab8a4c8508b79fe7c7648f1f952ac2cbf45cf5f67c541e8ac17d73e')
|
|
|
|
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"
|
|
}
|