From 703489e3d83772e817cb4dfd23354b5a125c7035 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 9 Jun 2019 17:27:01 +0000 Subject: python-zope-proxy: initial inclusion --- abs/core/python_modules/python-zope-proxy/PKGBUILD | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 abs/core/python_modules/python-zope-proxy/PKGBUILD diff --git a/abs/core/python_modules/python-zope-proxy/PKGBUILD b/abs/core/python_modules/python-zope-proxy/PKGBUILD new file mode 100644 index 0000000..c3e257f --- /dev/null +++ b/abs/core/python_modules/python-zope-proxy/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Felix Yan + +pkgbase=python-zope-proxy +pkgname=('python-zope-proxy' 'python2-zope-proxy') +pkgver=4.3.1 +pkgrel=1 +pkgdesc="Generic Transparent Proxies" +arch=('x86_64') +url="https://github.com/zopefoundation/zope.proxy" +license=('ZPL') +makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface' + 'python2-zope-interface') +checkdepends=('python-zope-security' 'python2-zope-security') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/zope.proxy/archive/$pkgver.tar.gz") +sha512sums=('1072258c35bf23162c4f347060ea79979cbfc551c308e809b7e63f1d9434f566b665954edf3d2ab0b72161fb74b0e707c5904775876188306411ed0401424612') + +prepare() { + cp -a zope.proxy-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/zope.proxy-$pkgver + python setup.py build + + cd "$srcdir"/zope.proxy-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/zope.proxy-$pkgver + python setup.py test || : + + cd "$srcdir"/zope.proxy-$pkgver-py2 + python2 setup.py test +} + +package_python-zope-proxy() { + depends=('python-setuptools' 'python-zope-interface') + + cd zope.proxy-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +} + +package_python2-zope-proxy() { + depends=('python2-setuptools' 'python2-zope-interface') + + cd zope.proxy-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: -- cgit v0.12