[arch-commits] Commit in python-zope-schema/repos (2 files)
Felix Yan
fyan at archlinux.org
Tue Nov 3 06:27:39 UTC 2015
Date: Tuesday, November 3, 2015 @ 07:27:39
Author: fyan
Revision: 145731
archrelease: copy trunk to community-any
Added:
python-zope-schema/repos/community-any/
python-zope-schema/repos/community-any/PKGBUILD
(from rev 145730, python-zope-schema/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-zope-schema/repos/community-any/PKGBUILD (from rev 145730, python-zope-schema/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-11-03 06:27:39 UTC (rev 145731)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=('python-zope-schema' 'python2-zope-schema')
+pkgver=4.4.2
+pkgrel=1
+pkgdesc="zope.interface extension for defining data schemas"
+arch=('any')
+url="https://github.com/zopefoundation/zope.schema"
+license=('ZPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-zope-interface'
+ 'python2-zope-interface' 'python-zope-event' 'python2-zope-event'
+ 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-zope-testing' 'python2-zope-testing')
+source=("git+https://github.com/zopefoundation/zope.schema.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+prepare() {
+ cp -a zope.schema{,-py2}
+}
+
+build() {
+ cd "$srcdir/zope.schema"
+ python setup.py build
+
+ cd "$srcdir/zope.schema-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/zope.schema"
+ python setup.py test
+
+ cd "$srcdir/zope.schema-py2"
+ python2 setup.py test
+}
+
+package_python-zope-schema() {
+ depends=('python-setuptools' 'python-zope-interface' 'python-zope-event')
+
+ cd "$srcdir/zope.schema"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-zope-schema() {
+ depends=('python2-setuptools' 'python2-zope-interface' 'python2-zope-event')
+
+ cd "$srcdir/zope.schema"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list