[arch-commits] Commit in python-zope-interface/repos (4 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:32:34 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:32:34
  Author: foutrelis
Revision: 246656

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  python-zope-interface/repos/staging-i686/
  python-zope-interface/repos/staging-i686/PKGBUILD
    (from rev 246655, python-zope-interface/trunk/PKGBUILD)
  python-zope-interface/repos/staging-x86_64/
  python-zope-interface/repos/staging-x86_64/PKGBUILD
    (from rev 246655, python-zope-interface/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   57 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   57 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

Copied: python-zope-interface/repos/staging-i686/PKGBUILD (from rev 246655, python-zope-interface/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-09-19 16:32:34 UTC (rev 246656)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgbase=python-zope-interface
+pkgname=('python-zope-interface' 'python2-zope-interface')
+pkgver=4.1.2
+pkgrel=3
+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=('04298faeaa70b4f3b23fa2ae8987262c')
+
+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 Python 3.x')
+  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.5/site-packages/zope/"
+}
+
+package_python2-zope-interface(){
+  pkgdesc=('Zope Interfaces for Python 2.x')
+  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/"
+}

Copied: python-zope-interface/repos/staging-x86_64/PKGBUILD (from rev 246655, python-zope-interface/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-09-19 16:32:34 UTC (rev 246656)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgbase=python-zope-interface
+pkgname=('python-zope-interface' 'python2-zope-interface')
+pkgver=4.1.2
+pkgrel=3
+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=('04298faeaa70b4f3b23fa2ae8987262c')
+
+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 Python 3.x')
+  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.5/site-packages/zope/"
+}
+
+package_python2-zope-interface(){
+  pkgdesc=('Zope Interfaces for Python 2.x')
+  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/"
+}



More information about the arch-commits mailing list