diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 25 insertions, 11 deletions
@@ -1,13 +1,16 @@ pkgbase = python-affine pkgdesc = Python package for matrices describing affine transformation of the plane - pkgver = 2.3.1 + pkgver = 2.4.0 pkgrel = 1 - url = https://github.com/sgillies/affine + url = https://github.com/rasterio/affine arch = any license = BSD - makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-flit-core depends = python - source = https://pypi.python.org/packages/source/a/affine/affine-2.3.1.tar.gz - sha256sums = d676de66157ad6af99ffd94e0f54e89dfc35b0fb7252ead2ed0ad2dca431bdd0 + source = https://pypi.python.org/packages/source/a/affine/affine-2.4.0.tar.gz + sha256sums = a24d818d6a836c131976d22f8c27b8d3ca32d0af64c1d8d29deb7bafa4da1eea pkgname = python-affine @@ -1,24 +1,35 @@ # Maintainer: Kyle Manna <kyle[at]kylemanna[d0t]com> _pkgname=affine pkgname=python-${_pkgname} -pkgver=2.3.1 +pkgver=2.4.0 pkgrel=1 pkgdesc="Python package for matrices describing affine transformation of the plane" -url="https://github.com/sgillies/affine" -makedepends=('python-setuptools') +url='https://github.com/rasterio/affine' +makedepends=('python-build' + 'python-installer' + 'python-wheel' + 'python-flit-core' + ) depends=('python') optdepends=() license=('BSD') arch=('any') source=("https://pypi.python.org/packages/source/a/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") -sha256sums=('d676de66157ad6af99ffd94e0f54e89dfc35b0fb7252ead2ed0ad2dca431bdd0') +sha256sums=('a24d818d6a836c131976d22f8c27b8d3ca32d0af64c1d8d29deb7bafa4da1eea') build() { cd "$srcdir/${_pkgname}-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$srcdir/${_pkgname}-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 + + python -m installer --destdir="$pkgdir" dist/*.whl + + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt + + # https://wiki.archlinux.org/index.php/Python_package_guidelines + local site_packages=$(python -c 'import site; print(site.getsitepackages()[0])') + rm -rf "${pkgdir}${site_packages}/test" } |