blob: f8afc152b1acc9e08c49be0d4bb5eeb04875aeeb (
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 208860 2014-03-27 14:43:41Z fyan $
# Maintainer : Felix Yan <felixonmars@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
pkgbase=python-zope-interface
pkgname=('python-zope-interface' 'python2-zope-interface')
pkgver=4.1.0
pkgrel=2
license=('ZPL')
arch=('i686' 'x86_64')
url="http://pypi.python.org/pypi/zope.interface"
makedepends=('python-setuptools' 'python2-setuptools')
source=("http://pypi.python.org/packages/source/z/zope.interface/zope.interface-${pkgver}.tar.gz")
md5sums=('ac63de1784ea0327db876c908af07a94')
prepare() {
cp -a zope.interface-${pkgver}{,-python2}
}
build() {
#build python3 module
cd "${srcdir}/zope.interface-${pkgver}"
python setup.py build
#build python2 module
cd "${srcdir}/zope.interface-${pkgver}-python2"
python2 setup.py build
}
check() {
cd "${srcdir}/zope.interface-${pkgver}"
python setup.py test
cd "${srcdir}/zope.interface-${pkgver}-python2"
python2 setup.py test
}
package_python-zope-interface() {
pkgdesc=('Zope Interfaces for Python3')
depends=('python')
cd "${srcdir}/zope.interface-${pkgver}"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
cp src/zope/__init__.py "${pkgdir}/usr/lib/python3.4/site-packages/zope/"
}
package_python2-zope-interface(){
pkgdesc=('Zope Interfaces for Python2')
depends=('python2')
replaces=('zope-interface')
provides=('zope-interface')
cd "${srcdir}/zope.interface-${pkgver}-python2"
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
cp src/zope/__init__.py "${pkgdir}/usr/lib/python2.7/site-packages/zope/"
}
|