[arch-commits] Commit in python-zope-event/repos (2 files)
Felix Yan
fyan at archlinux.org
Mon Oct 5 08:23:07 UTC 2015
Date: Monday, October 5, 2015 @ 10:23:07
Author: fyan
Revision: 142963
archrelease: copy trunk to community-any
Added:
python-zope-event/repos/community-any/
python-zope-event/repos/community-any/PKGBUILD
(from rev 142962, python-zope-event/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-zope-event/repos/community-any/PKGBUILD (from rev 142962, python-zope-event/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-10-05 08:23:07 UTC (rev 142963)
@@ -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.0.3
+pkgrel=1
+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=('3dfa2ef09c891f378e05404521529f8e1333c75cdf9567a3454e3538ef7f3f02')
+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