split packages for python2 and 3

This commit is contained in:
Cedric Girard 2017-08-23 16:15:25 +02:00
parent 55250af2e3
commit 03ba1764a0
2 changed files with 16 additions and 12 deletions

View file

@ -5,10 +5,12 @@ pkgbase = python2-flask-compress
url = http://pypi.python.org/pypi/Flask-Compress/
arch = any
license = BSD
makedepends = python2-setuptools
depends = python2-flask
source = https://pypi.io/packages/source/F/Flask-Compress/Flask-Compress-1.4.0.tar.gz
sha1sums = 68b5eb124b02993c9466dfb2438e0ba79d2d5809
pkgname = python2-flask-compress
depends = python2-flask
pkgname = python-flask-compress
depends = python-flask

View file

@ -1,26 +1,28 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
_pythonmod=Flask-Compress
pkgname='python2-flask-compress'
pkgname=('python2-flask-compress' 'python-flask-compress')
pkgbase='python2-flask-compress'
pkgver='1.4.0'
pkgrel='1'
pkgdesc='custom actions for flask to help manage your application'
arch=('any')
url='http://pypi.python.org/pypi/Flask-Compress/'
license=('BSD')
depends=('python2-flask')
makedepends=('python2-setuptools')
source=("https://pypi.io/packages/source/${_pythonmod:0:1}/${_pythonmod}/${_pythonmod}-$pkgver.tar.gz")
sha1sums=('68b5eb124b02993c9466dfb2438e0ba79d2d5809')
build() {
cd "Flask-Compress-${pkgver}"
python2 ./setup.py build
}
package() {
package_python2-flask-compress() {
depends=('python2-flask')
makedepends=('python2-setuptools')
cd "Flask-Compress-${pkgver}"
python2 ./setup.py install --root="${pkgdir}" --prefix="/usr"
}
package_python-flask-compress() {
depends=('python-flask')
makedepends=('python-setuptools')
cd "Flask-Compress-${pkgver}"
python ./setup.py install --root="${pkgdir}" --prefix="/usr"
}
# vim:set ts=2 sw=2 et: