[arch-commits] Commit in python-zope-proxy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 19:56:14 UTC 2019
Date: Friday, October 25, 2019 @ 19:56:14
Author: foutrelis
Revision: 519633
archrelease: copy trunk to community-staging-x86_64
Added:
python-zope-proxy/repos/community-staging-x86_64/
python-zope-proxy/repos/community-staging-x86_64/PKGBUILD
(from rev 519631, python-zope-proxy/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-zope-proxy/repos/community-staging-x86_64/PKGBUILD (from rev 519631, python-zope-proxy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-25 19:56:14 UTC (rev 519633)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-zope-proxy
+pkgname=('python-zope-proxy' 'python2-zope-proxy')
+pkgver=4.3.2
+pkgrel=2
+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=('4a42a4989775f01f1b663d71058aae9852690d713269b5d58c6e10784ed2ca6ca056be5261bb009f230e198818b92d4e1014961f1144dcfacb47202064a8a666')
+
+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:
More information about the arch-commits
mailing list