summaryrefslogtreecommitdiff
path: root/extra/python-zope-interface
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-21 03:34:10 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-21 03:34:10 +0000
commit96cf9235f114b8d960c16a8625937b16979ae1aa (patch)
treed2eed8b5352413c7d68cf5856b8112c0620b1942 /extra/python-zope-interface
parent2f8045ba14153d1665148e3cff527ce4f6bf66e5 (diff)
Fri Feb 21 03:31:53 UTC 2014
Diffstat (limited to 'extra/python-zope-interface')
-rw-r--r--extra/python-zope-interface/PKGBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/extra/python-zope-interface/PKGBUILD b/extra/python-zope-interface/PKGBUILD
new file mode 100644
index 000000000..f83ae12eb
--- /dev/null
+++ b/extra/python-zope-interface/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id: PKGBUILD 206137 2014-02-20 04:37:49Z 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=1
+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.3/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/"
+}