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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Dec 24 17:54:50 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:54:50
  Author: bpiotrowski
Revision: 201706

archrelease: copy trunk to community-staging-any

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

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

Copied: python-rfc3986/repos/community-staging-any/PKGBUILD (from rev 201705, python-rfc3986/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:54:50 UTC (rev 201706)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
+
+pkgbase=python-rfc3986
+pkgname=(python-rfc3986 python2-rfc3986)
+pkgver=0.4.1
+pkgrel=2
+pkgdesc="Validating URI References per RFC 3986"
+arch=('any')
+license=('Apache')
+url="https://rfc3986.readthedocs.org/"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/r/rfc3986/rfc3986-$pkgver.tar.gz")
+md5sums=('b2b48cd36dabb82d5eaa54bbfb20d382')
+
+prepare() {
+  cp -a rfc3986-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/rfc3986-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/rfc3986-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/rfc3986-$pkgver
+  python setup.py ptr
+
+  cd "$srcdir"/rfc3986-$pkgver-py2
+  python2 setup.py ptr
+}
+
+package_python-rfc3986() {
+  depends=('python')
+
+  cd rfc3986-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-rfc3986() {
+  depends=('python2')
+
+  cd rfc3986-$pkgver-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}



More information about the arch-commits mailing list