[arch-commits] Commit in python-zope-event/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:36:15 UTC 2020
Date: Monday, November 9, 2020 @ 15:36:15
Author: felixonmars
Revision: 747012
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 747011, python-zope-event/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-zope-event/repos/community-staging-any/PKGBUILD (from rev 747011, python-zope-event/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:36:15 UTC (rev 747012)
@@ -0,0 +1,49 @@
+# 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.5.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")
+sha512sums=('2414a283988dc646e48153e389688b8eec4db528f7ac9ff45f982ce42295d390985825ac0f9db566fc5600fe4c96a8297a9c5718a16abc6d1831c72ee42c163d')
+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