[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 16 23:49:04 UTC 2017


    Date: Thursday, November 16, 2017 @ 23:49:03
  Author: felixonmars
Revision: 267051

addpkg: python-zconfig 3.2.0-1

Added:
  python-zconfig/
  python-zconfig/repos/
  python-zconfig/trunk/
  python-zconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Added: python-zconfig/trunk/PKGBUILD
===================================================================
--- python-zconfig/trunk/PKGBUILD	                        (rev 0)
+++ python-zconfig/trunk/PKGBUILD	2017-11-16 23:49:03 UTC (rev 267051)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-zconfig
+pkgname=(python-zconfig python2-zconfig)
+pkgver=3.2.0
+pkgrel=1
+pkgdesc="Structured Configuration Library"
+url="https://github.com/zopefoundation/ZConfig"
+license=('ZPL')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-zope-testrunner' 'python2-zope-testrunner' 'python-manuel' 'python2-manuel'
+              'python-docutils' 'python2-docutils' 'python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/zopefoundation/ZConfig/archive/$pkgver.tar.gz")
+sha512sums=('053c12ef8d36e53ea844afc6949304ff6153895f3d4eac8c30f4bff6bde7efc017caac4364656683bd3c95b3840e59b95bd8e338c97dc3b5bbb67fac08496107')
+
+prepare() {
+  cp -a ZConfig-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/ZConfig-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/ZConfig-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/ZConfig-$pkgver
+  nosetests3
+
+  cd "$srcdir"/ZConfig-$pkgver-py2
+  nosetests2
+}
+
+package_python-zconfig() {
+  depends=('python')
+
+  cd ZConfig-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-zconfig() {
+  depends=('python2')
+
+  cd ZConfig-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/zconfig{,2}
+  mv "$pkgdir"/usr/bin/zconfig{,2}_schema2html
+}


Property changes on: python-zconfig/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property


More information about the arch-commits mailing list