# Maintainer: Carlos Aznarán # Contributor: dreieck _base=fortranformat pkgname=python-${_base} pkgdesc="Mimics Fortran textual IO in Python" pkgver=2.0.0 pkgrel=1 arch=(any) url="https://github.com/brendanarnold/py-${_base}" license=(MIT) depends=(python) makedepends=(python-build python-installer python-setuptools python-wheel) source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz) sha512sums=('948473cdd38b755bf06293301d44f42566b0be8a0b213fa5272a867994c85482abfd712762ee3e59b12899e6eaba6aa6ae6d022dc000638e67b9d0cbdf23678b') build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }