[arch-commits] Commit in python-zconfig/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:23:06 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:23:06
  Author: felixonmars
Revision: 520493

archrelease: copy trunk to community-staging-any

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

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

Copied: python-zconfig/repos/community-staging-any/PKGBUILD (from rev 520491, python-zconfig/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:23:06 UTC (rev 520493)
@@ -0,0 +1,54 @@
+# 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.5.0
+pkgrel=2
+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=('0aa5ad1344ac599a10513e1189d0c990717311b39cc6dd6a44315812dce66c09760979931839e3739089d30c69c626bf8259695e1afb4691d19662f41100ecee')
+
+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