blob: c3e257f2ab081f413b8a9077c0c2033f7fbdc378 (
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
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-zope-proxy
pkgname=('python-zope-proxy' 'python2-zope-proxy')
pkgver=4.3.1
pkgrel=1
pkgdesc="Generic Transparent Proxies"
arch=('x86_64')
url="https://github.com/zopefoundation/zope.proxy"
license=('ZPL')
makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
'python2-zope-interface')
checkdepends=('python-zope-security' 'python2-zope-security')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.proxy/archive/$pkgver.tar.gz")
sha512sums=('1072258c35bf23162c4f347060ea79979cbfc551c308e809b7e63f1d9434f566b665954edf3d2ab0b72161fb74b0e707c5904775876188306411ed0401424612')
prepare() {
cp -a zope.proxy-$pkgver{,-py2}
}
build() {
cd "$srcdir"/zope.proxy-$pkgver
python setup.py build
cd "$srcdir"/zope.proxy-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/zope.proxy-$pkgver
python setup.py test || :
cd "$srcdir"/zope.proxy-$pkgver-py2
python2 setup.py test
}
package_python-zope-proxy() {
depends=('python-setuptools' 'python-zope-interface')
cd zope.proxy-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-zope-proxy() {
depends=('python2-setuptools' 'python2-zope-interface')
cd zope.proxy-$pkgver
python2 setup.py install --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
|