summaryrefslogtreecommitdiff
path: root/extra/python-zope-interface/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 16:15:08 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-23 16:15:08 -0300
commit44ae571c1d57a21af2c915b42bb656cf0d69c9ee (patch)
tree757e53f443e27a95d1b1b0cdf337c2147953fc46 /extra/python-zope-interface/PKGBUILD
parenteadbb9961b89668e4aed317f5dd97cb04e86663e (diff)
parent1d20e4962664ab152948a14b4320b12204a1053e (diff)
Merge branch 'master' of gparabola:abslibre/abslibre-pre-mips64el
Conflicts: community/libftdi/PKGBUILD community/lxshortcut/PKGBUILD community/pcmanfm/PKGBUILD community/qingy/PKGBUILD community/yagf/PKGBUILD extra/ethtool/PKGBUILD extra/gptfdisk/PKGBUILD extra/postgresql/PKGBUILD extra/xfburn/PKGBUILD libre/linux-libre/PKGBUILD
Diffstat (limited to 'extra/python-zope-interface/PKGBUILD')
-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/"
+}