[arch-commits] Commit in python-cligj/repos (community-any community-any/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Sun Jun 20 16:13:45 UTC 2021
Date: Sunday, June 20, 2021 @ 16:13:45
Author: archange
Revision: 965944
archrelease: copy trunk to community-any
Added:
python-cligj/repos/community-any/
python-cligj/repos/community-any/PKGBUILD
(from rev 965943, python-cligj/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-cligj/repos/community-any/PKGBUILD (from rev 965943, python-cligj/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-06-20 16:13:45 UTC (rev 965944)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=cligj
+pkgname=python-${_pkg}
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="Click-based argument and option decorators for Python GIS command line programs"
+arch=(any)
+url="https://github.com/mapbox/cligj"
+license=(BSD)
+depends=(python-click)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('a4bc13d623356b373c2c27c53dbd9c68cae5d526270bfa71f6c6fa69669c6b27')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ PYTHONPATH="${PWD}"/build/lib pytest
+}
+
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list