archlinux-pkgbuilds/python2-flask-compress/PKGBUILD

28 lines
924 B
Text
Raw Normal View History

2015-10-09 14:50:50 +02:00
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
2016-09-22 10:10:07 +02:00
_pythonmod=Flask-Compress
2017-08-23 16:15:25 +02:00
pkgname=('python2-flask-compress' 'python-flask-compress')
pkgbase='python2-flask-compress'
2017-01-05 11:37:24 +01:00
pkgver='1.4.0'
2015-10-09 14:50:50 +02:00
pkgrel='1'
2017-08-23 16:19:01 +02:00
pkgdesc='compress responses in your Flask app with gzip'
2015-10-09 14:50:50 +02:00
arch=('any')
url='http://pypi.python.org/pypi/Flask-Compress/'
license=('BSD')
makedepends=('python-setuptools' 'python-flask' 'python2-setuptools' 'python2-flask')
2016-09-22 10:10:07 +02:00
source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz")
2017-01-05 11:37:24 +01:00
sha1sums=('68b5eb124b02993c9466dfb2438e0ba79d2d5809')
2015-10-09 14:50:50 +02:00
2017-08-23 16:15:25 +02:00
package_python2-flask-compress() {
depends=('python2-flask')
2015-10-09 14:50:50 +02:00
cd "Flask-Compress-${pkgver}"
2017-08-23 16:15:25 +02:00
python2 ./setup.py install --root="${pkgdir}" --prefix="/usr"
2015-10-09 14:50:50 +02:00
}
2017-08-23 16:15:25 +02:00
package_python-flask-compress() {
depends=('python-flask')
2015-10-09 14:50:50 +02:00
cd "Flask-Compress-${pkgver}"
2017-08-23 16:15:25 +02:00
python ./setup.py install --root="${pkgdir}" --prefix="/usr"
2015-10-09 14:50:50 +02:00
}
# vim:set ts=2 sw=2 et: