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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 10:52:50 UTC 2016


    Date: Saturday, December 24, 2016 @ 10:52:49
  Author: felixonmars
Revision: 201356

archrelease: copy trunk to community-staging-any

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

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

Copied: python-zope-event/repos/community-staging-any/PKGBUILD (from rev 201355, python-zope-event/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 10:52:49 UTC (rev 201356)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Hanna <simon dot hanna AT serve-me DOT info>
+
+pkgbase=python-zope-event
+pkgname=('python-zope-event' 'python2-zope-event')
+pkgver=4.2.0
+pkgrel=2
+pkgdesc="Provides a simple event system"
+arch=(any)
+license=('ZPL')
+url="https://github.com/zopefoundation/zope.event"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/zopefoundation/zope.event/archive/${pkgver}.tar.gz")
+sha256sums=('20b0a3abe0dadfac853f9922287e598cce8f73b9dcfd68c10aaf6f897d0dfd7f')
+makedepends=('python-setuptools' 'python2-setuptools')
+
+prepare() {
+  cp -a zope.event-${pkgver}{,-py2}
+}
+
+build() {
+  cd "${srcdir}/zope.event-${pkgver}"
+  python setup.py build
+
+  cd "${srcdir}/zope.event-${pkgver}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "${srcdir}/zope.event-${pkgver}"
+  python setup.py test
+
+  cd "${srcdir}/zope.event-${pkgver}-py2"
+  python2 setup.py test
+}
+
+package_python-zope-event() {
+  depends=('python')
+  cd "$srcdir/zope.event-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-zope-event() {
+  depends=('python2')
+  cd "$srcdir/zope.event-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list