diff options
author | Britney Fransen <brfransen@gmail.com> | 2019-06-09 17:24:13 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2019-06-09 17:24:13 (GMT) |
commit | d005a514eaebed116abe35586bb622ed51f98421 (patch) | |
tree | 1965800cd5bca2dd4f6251db9cd5b0f8bb0759a0 /abs/core/python_modules | |
parent | 82c47f36985feb301d9cf42a9481d174765ad60a (diff) | |
download | linhes_pkgbuild-d005a514eaebed116abe35586bb622ed51f98421.zip linhes_pkgbuild-d005a514eaebed116abe35586bb622ed51f98421.tar.gz linhes_pkgbuild-d005a514eaebed116abe35586bb622ed51f98421.tar.bz2 |
python-zope-event: initial inclusion
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r-- | abs/core/python_modules/python-zope-event/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-zope-event/PKGBUILD b/abs/core/python_modules/python-zope-event/PKGBUILD new file mode 100644 index 0000000..58c2e79 --- /dev/null +++ b/abs/core/python_modules/python-zope-event/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonmars@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.4 +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") +sha512sums=('653273d021a43dca6d77900a3e2928f1621fd9c47a536ddd186e00b601670a4ac72042a1eadf18cf9912609025b491cee41508e8eb53bf2dc2ada2c5d3d5bb70') +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: |