Date: Sunday, June 20, 2021 @ 16:13:32 Author: archange Revision: 965943
Initial addition of python-cligj in [community] Dependency for geopandas{U+2192}fiona{U+2192}cligj. Added: python-cligj/ python-cligj/repos/ python-cligj/trunk/ python-cligj/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-cligj/trunk/PKGBUILD =================================================================== --- python-cligj/trunk/PKGBUILD (rev 0) +++ python-cligj/trunk/PKGBUILD 2021-06-20 16:13:32 UTC (rev 965943) @@ -0,0 +1,32 @@ +# Maintainer: Bruno Pagani <archa...@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} +}