[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Sat Mar 14 14:18:50 UTC 2020


    Date: Saturday, March 14, 2020 @ 14:18:50
  Author: dvzrv
Revision: 596979

Adding python-git-url-parse as depends for python-gilt, a depends for molecule.

Added:
  python-git-url-parse/
  python-git-url-parse/repos/
  python-git-url-parse/trunk/
  python-git-url-parse/trunk/PKGBUILD

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

Added: python-git-url-parse/trunk/PKGBUILD
===================================================================
--- python-git-url-parse/trunk/PKGBUILD	                        (rev 0)
+++ python-git-url-parse/trunk/PKGBUILD	2020-03-14 14:18:50 UTC (rev 596979)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=git-url-parse
+pkgname=python-git-url-parse
+pkgver=1.2.2
+pkgrel=2
+epoch=
+pkgdesc="A simple GIT URL parser"
+arch=('any')
+url="https://github.com/coala/git-url-parse"
+license=('MIT')
+groups=()
+depends=('python-pbr')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-mock' 'yapf')
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+noextract=()
+sha512sums=('d9a1633fd08b2d4bbd33ff886776906d2981f53178e295fb9907fdb261e863e2b70293d962962355b96ea156e17bb7e224497a4a708c8d9d0cc559d111fa188b')
+validpgpkeys=()
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {AUTHORS,CHANGELOG,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list