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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 08:44:04 UTC 2020


    Date: Tuesday, November 10, 2020 @ 08:44:04
  Author: felixonmars
Revision: 749437

archrelease: copy trunk to community-staging-any

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

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

Copied: python-purl/repos/community-staging-any/PKGBUILD (from rev 749436, python-purl/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 08:44:04 UTC (rev 749437)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-purl
+pkgver=1.5
+pkgrel=5
+pkgdesc="An immutable URL class for easy URL-building and manipulation"
+arch=('any')
+license=('MIT')
+url="https://github.com/codeinthehole/purl"
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("https://github.com/codeinthehole/purl/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c034e563d25f4270d4aa9731e87df23203a1c6fc09d2df60fd6038e88c17341e2b30b04a9fba177a04a2552ce3ee0f2d9e34bf4aad6675eb23d2c7bd047d3813')
+
+build() {
+  cd purl-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd purl-$pkgver
+  python setup.py nosetests
+}
+
+package() {
+  cd purl-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list