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

Felix Yan felixonmars at archlinux.org
Tue Dec 26 00:53:35 UTC 2017


    Date: Tuesday, December 26, 2017 @ 00:53:34
  Author: felixonmars
Revision: 276061

archrelease: copy trunk to community-any

Added:
  python-rfc3987/repos/community-any/
  python-rfc3987/repos/community-any/PKGBUILD
    (from rev 276060, python-rfc3987/trunk/PKGBUILD)

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

Copied: python-rfc3987/repos/community-any/PKGBUILD (from rev 276060, python-rfc3987/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-12-26 00:53:34 UTC (rev 276061)
@@ -0,0 +1,43 @@
+# $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-rfc3987
+pkgname=(python-rfc3987 python2-rfc3987)
+pkgver=1.3.7
+pkgrel=1
+pkgdesc="Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)"
+url="https://pypi.python.org/pypi/rfc3987"
+license=('GPL')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/r/rfc3987/rfc3987-$pkgver.tar.gz")
+sha512sums=('c5fa8eb36358f7f42d12adc305031bfff7bd77e83316ad4458ed07acc6094c7d9109b95848b9296dcbc6677ce34aa59b1be8fd57dfcdc6be47eb92aeda51c518')
+
+prepare() {
+  cp -a rfc3987-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/rfc3987-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/rfc3987-$pkgver-py2
+  python2 setup.py build
+}
+
+package_python-rfc3987() {
+  depends=('python')
+
+  cd rfc3987-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-rfc3987() {
+  depends=('python2')
+
+  cd rfc3987-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list