[arch-commits] Commit in python-zconfig/repos (community-any community-any/PKGBUILD)

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


    Date: Thursday, November 16, 2017 @ 23:49:25
  Author: felixonmars
Revision: 267052

archrelease: copy trunk to community-any

Added:
  python-zconfig/repos/community-any/
  python-zconfig/repos/community-any/PKGBUILD
    (from rev 267051, python-zconfig/trunk/PKGBUILD)

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

Copied: python-zconfig/repos/community-any/PKGBUILD (from rev 267051, python-zconfig/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-11-16 23:49:25 UTC (rev 267052)
@@ -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
+}



More information about the arch-commits mailing list