[arch-commits] Commit in python-zope-component/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Jul 12 20:32:39 UTC 2018


    Date: Thursday, July 12, 2018 @ 20:32:39
  Author: felixonmars
Revision: 358182

archrelease: copy trunk to community-staging-any

Added:
  python-zope-component/repos/community-staging-any/
  python-zope-component/repos/community-staging-any/PKGBUILD
    (from rev 358181, python-zope-component/trunk/PKGBUILD)

----------+
 PKGBUILD |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

Copied: python-zope-component/repos/community-staging-any/PKGBUILD (from rev 358181, python-zope-component/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-12 20:32:39 UTC (rev 358182)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Hanna <simon dot hanna AT serve-me DOT info>
+
+pkgbase=python-zope-component
+pkgname=('python-zope-component' 'python2-zope-component')
+pkgver=4.4.1
+pkgrel=2
+pkgdesc="Represents the core of the Zope Component Architecture"
+arch=('any')
+url="https://github.com/zopefoundation/zope.component"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+             'python2-zope-interface' 'python-zope-event' 'python2-zope-event')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner' 'python-persistent'
+              'python2-persistent' 'python-zope-hookable' 'python2-zope-hookable'
+              'python-zope-location' 'python2-zope-location' 'python-zope-proxy'
+              'python2-zope-proxy' 'python-zope-security' 'python2-zope-security'
+              'python-zope-configuration' 'python2-zope-configuration' 'python-zope-i18nmessageid'
+              'python2-zope-i18nmessageid')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.component/archive/$pkgver.tar.gz")
+sha512sums=('ae49b2663403ee6af53b580a8cdf973d69800f2451e6de3181bf742fa33cd5fcf1f98fd01ab92ea22a816fcd1678030555bff903070309df935921c9c77f82ec')
+
+prepare() {
+  cp -a zope.component-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/zope.component-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/zope.component-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/zope.component-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || warning "Tests failed"
+
+  cd "$srcdir"/zope.component-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m zope.testrunner --test-path=src
+}
+
+package_python-zope-component() {
+  depends=('python-setuptools' 'python-zope-interface' 'python-zope-event')
+
+  cd zope.component-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zope-component() {
+  depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-event')
+
+  cd zope.component-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list