blob: f35345c81748176e574d2790590822dd0811627b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Thomas Sarboni <max-k@post.com>
pkgbase=python-flask-restful
pkgname=('python2-flask-restful')
_realname=Flask-RESTful
pkgver=0.3.5
pkgrel=1
pkgdesc='A Flask extension for creating REST APIs'
_baseurl='https://pypi.python.org'
url="${_baseurl}/pypi/${_realname}"
arch=('any')
license=('BSD')
makedepends=('python2-distribute' 'python2-aniso8601>=0.82')
conflicts=('python2-flask-restful-git')
source=("${_baseurl}/packages/source/F/${_realname}/${_realname}-${pkgver}.tar.gz"
'LICENSE')
md5sums=('eab04644697354c0e9ef0fa4c17fe607'
'685bb55ed99a366bb431995f5eef2783')
prepare() {
# We ship separated python{,2}-packaging packages.
cp -a ${_realname}-${pkgver}{,-python2}
}
build() {
# Build python 3 module
# cd "${srcdir}/${_realname}-${pkgver}"
# python3 setup.py build
# Build python 2 module
cd "${srcdir}/${_realname}-${pkgver}-python2"
python2 setup.py build
}
package_python-flask-restful() {
depends=('python-flask>=0.8' 'python-six>=1.3.0' 'python-pytz' 'python-aniso8601>=0.82')
cd "${srcdir}/${_realname}-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
_licenses_path="${pkgdir}/usr/share/licenses/python-flask-restful"
install -D -m644 ${srcdir}/LICENSE "${_licenses_path}/LICENSE"
}
package_python2-flask-restful() {
depends=('python2-flask>=0.8' 'python2-six>=1.3.0' 'python2-pytz' 'python2-aniso8601>=0.82')
cd "${srcdir}/${_realname}-${pkgver}-python2"
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
_licenses_path="${pkgdir}/usr/share/licenses/python2-flask-restful"
install -D -m644 ${srcdir}/LICENSE "${_licenses_path}/LICENSE"
}
|