[arch-commits] Commit in python-persistent/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:32:54 UTC 2019
Date: Saturday, October 26, 2019 @ 04:32:54
Author: felixonmars
Revision: 520038
archrelease: copy trunk to community-staging-x86_64
Added:
python-persistent/repos/community-staging-x86_64/
python-persistent/repos/community-staging-x86_64/PKGBUILD
(from rev 520031, python-persistent/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-persistent/repos/community-staging-x86_64/PKGBUILD (from rev 520031, python-persistent/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-26 04:32:54 UTC (rev 520038)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-persistent
+pkgname=('python-persistent' 'python2-persistent')
+pkgver=4.4.3
+pkgrel=2
+pkgdesc="Translucent persistent objects"
+arch=('x86_64')
+license=('ZPL')
+url="http://www.zope.org/Products/ZODB"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+ 'python2-zope-interface' 'python-cffi' 'python2-cffi')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner' 'python-manuel' 'python2-manuel')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/persistent/archive/$pkgver.tar.gz")
+sha512sums=('721a00c42f591cfa62813b2e2948e139a29a9e555fbe0c2732588699e36c614ad993c6b11c88229ccf94e4729e2edf8195dd54ed635f4a2ecd6e6b86d90559d8')
+
+prepare() {
+ cp -a persistent-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/persistent-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/persistent-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/persistent-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" python -m zope.testrunner --test-path=.
+
+ cd "$srcdir"/persistent-$pkgver-py2
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" python2 -m zope.testrunner --test-path=.
+}
+
+package_python-persistent() {
+ depends=('python-zope-interface')
+
+ cd persistent-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-persistent() {
+ depends=('python2-zope-interface')
+
+ cd persistent-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list