From db58b5e2b4af219c3dbdbbfbd041adbfd58576eb Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 9 Jun 2019 17:25:23 +0000 Subject: python-zope-deprecation: initial inclusion --- .../python-zope-deprecation/PKGBUILD | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 abs/core/python_modules/python-zope-deprecation/PKGBUILD diff --git a/abs/core/python_modules/python-zope-deprecation/PKGBUILD b/abs/core/python_modules/python-zope-deprecation/PKGBUILD new file mode 100644 index 0000000..69486f8 --- /dev/null +++ b/abs/core/python_modules/python-zope-deprecation/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan + +pkgbase=python-zope-deprecation +pkgname=('python-zope-deprecation' 'python2-zope-deprecation') +pkgver=4.4.0 +pkgrel=1 +pkgdesc="Zope Deprecation Infrastructure" +arch=('any') +url="https://github.com/zopefoundation/zope.deprecation" +license=('ZPL') +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-nose' 'python2-nose') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.deprecation/archive/$pkgver.tar.gz") +sha512sums=('d8632a3442eee059383014bb3341b30897ad8f9206b71bc586c873c4cccf5f87296edaf18f1e1c93878f480e3b0e8e1c1936ac19ed327f4ab227402ebbc73e0e') + +prepare() { + cp -a zope.deprecation-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/zope.deprecation-$pkgver + python setup.py build + + cd "$srcdir"/zope.deprecation-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/zope.deprecation-$pkgver + nosetests3 + + cd "$srcdir"/zope.deprecation-$pkgver-py2 + nosetests2 +} + +package_python-zope-deprecation() { + depends=('python-setuptools') + + cd zope.deprecation-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-zope-deprecation() { + depends=('python2-setuptools') + + cd zope.deprecation-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: -- cgit v0.12