diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 15 insertions, 11 deletions
@@ -1,14 +1,16 @@ pkgbase = python-pyepsg pkgdesc = A simple interface to https://epsg.io/ pkgver = 0.4.0 - pkgrel = 1 - url = https://github.com/rhattersley/pyepsg + pkgrel = 2 + url = https://pyepsg.readthedocs.io/ arch = any license = LGPL3 + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-requests source = https://files.pythonhosted.org/packages/source/p/pyepsg/pyepsg-0.4.0.tar.gz sha256sums = 2d08fad1e7a8b47a90a4e43da485ba95705923425aefc4e2a3efa540dbd470d7 pkgname = python-pyepsg - @@ -2,27 +2,29 @@ pkgname=python-pyepsg pkgver=0.4.0 -pkgrel=1 +pkgrel=2 pkgdesc='A simple interface to https://epsg.io/' -url='https://github.com/rhattersley/pyepsg' +url='https://pyepsg.readthedocs.io/' arch=('any') license=('LGPL3') + depends=('python-requests') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +_pypi=pyepsg source=( - "https://files.pythonhosted.org/packages/source/p/pyepsg/pyepsg-$pkgver.tar.gz" + "https://files.pythonhosted.org/packages/source/${_pypi::1}/$_pypi/$_pypi-$pkgver.tar.gz" ) sha256sums=( '2d08fad1e7a8b47a90a4e43da485ba95705923425aefc4e2a3efa540dbd470d7' ) build() { - cd "pyepsg-$pkgver" - python setup.py build + cd "$_pypi-$pkgver" + python -m build --no-isolation --wheel } package() { - cd "pyepsg-$pkgver" - python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1 --skip-build + cd "$_pypi-$pkgver" + python -m installer --destdir="$pkgdir" "dist/$_pypi-$pkgver-"*.whl } |