diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 59 |
1 files changed, 22 insertions, 37 deletions
@@ -1,41 +1,26 @@ -# Maintainer: dreieck - -pkgname="python-fortranformat" -pkgver="1.1.1" -pkgrel="1" -pkgdesc="Python module to read and write data with fortran format strings." -arch=('any') -url='https://pypi.python.org/pypi/fortranformat' -license=('custom:MIT') - -_srcfile="fortranformat-${pkgver}.tar.gz" - -source=( - "http://pypi.python.org/packages/source/f/fortranformat/${_srcfile}" - "website.html::${url}" -) - -sha256sums=( - '9b7aa2148af7a5f4f5fd955d121bd6869d44b82ac2182d459813b849aa87d831' - 'ff4e0510a7b79f2eb9e139de93f593e9895d69a687b51911197606ebecbe8385' -) - -build() -{ - _extractdir="${srcdir}/fortranformat-${pkgver}" - - cd "${_extractdir}" +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +# Contributor: dreieck <oid-maps@seznam.cz> +_base=fortranformat +pkgname=python-${_base} +pkgdesc="Mimics Fortran textual IO in Python" +pkgver=1.1.1 +pkgrel=2 +arch=(any) +url="https://github.com/brendanarnold/py-${_base}" +license=(MIT) +depends=(python) +makedepends=(python-setuptools) +source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.tar.gz) +sha512sums=('39268216ea104c8ca03b7e53c3077e845f375f4a1fe7f0336a030cae7a21034fbb1d0b287ec08b012ece3e81a999dcfd50dece410b6abd4b937d81d67922853d') + +build() { + cd ${_base}-${pkgver} + export PYTHONHASHSEED=0 python setup.py build } -package() -{ - _extractdir="${srcdir}/fortranformat-${pkgver}" - - cd "${_extractdir}" - python setup.py install --prefix=/usr --root "${pkgdir}" - - install -D -m 644 -v "${srcdir}/website.html" "${pkgdir}/usr/share/doc/${pkgname}/usage.html" - - install -D -m 644 -v LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_MIT.txt" +package() { + cd ${_base}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |