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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:20:28 UTC 2020


    Date: Monday, November 9, 2020 @ 20:20:28
  Author: felixonmars
Revision: 748205

archrelease: copy trunk to community-staging-any

Added:
  python-zope-location/repos/community-staging-any/
  python-zope-location/repos/community-staging-any/PKGBUILD
    (from rev 748203, python-zope-location/trunk/PKGBUILD)

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

Copied: python-zope-location/repos/community-staging-any/PKGBUILD (from rev 748203, python-zope-location/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 20:20:28 UTC (rev 748205)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-zope-location
+pkgver=4.2
+pkgrel=5
+pkgdesc="Special objects that have a structural location"
+arch=('any')
+url="https://github.com/zopefoundation/zope.location"
+license=('ZPL')
+depends=('python-setuptools' 'python-zope-interface' 'python-zope-schema' 'python-zope-proxy')
+checkdepends=('python-zope-testrunner' 'python-zope-copy' 'python-zope-configuration' 'python-zope-component')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.location/archive/$pkgver.tar.gz")
+sha512sums=('3478f28738399acbdd24491361ad3454bb8415ff30a407608780758b881a6abe504ee913d28074baad52e275046a48aa13569fd5700fbb77db36aff89d79a148')
+
+build() {
+  cd "$srcdir"/zope.location-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/zope.location-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m zope.testrunner --test-path=src || echo "Tests failed"
+}
+
+package() {
+  cd zope.location-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list