blob: 38df2abb52a603046e761113d464d9e03aa6426b (
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
55
|
# $Id: PKGBUILD 114894 2014-07-04 15:29:05Z fyan $
# Maintainer: Chris Brannon <chris@the-brannons.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
pkgbase=python-flup
pkgname=('python2-flup' 'python-flup')
pkgver=1.0.3
pkgrel=1
pkgdesc='A collection of Python WSGI modules'
arch=('any')
url='https://www.saddi.com/software/flup/'
license=('MIT')
makedepends=('python2-distribute' 'python-distribute')
source=("https://pypi.python.org/packages/source/f/flup/flup-${pkgver}.tar.gz"
'LICENSE')
md5sums=('a64e7a6374e043480ee92534c735964e'
'2b61db5f66aad3b1748085e146603bd1')
prepare() {
rm -rf -- "${srcdir}/flup-${pkgver}-py2"
cp -a -- "${srcdir}/flup-${pkgver}"{,-py2}
cd "$srcdir/flup-$pkgver-py2"
# python2 fix
for file in flup/server/*.py; do
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file
done
}
build() {
cd "${srcdir}/flup-${pkgver}"
python setup.py build
cd "${srcdir}/flup-${pkgver}-py2"
python2 setup.py build
}
package_python-flup() {
depends=('python')
cd "$srcdir/flup-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-flup() {
depends=('python2')
cd "$srcdir/flup-$pkgver-py2"
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|