diff options
author | Grey Christoforo | 2020-11-01 12:55:42 +0100 |
---|---|---|
committer | Grey Christoforo | 2020-11-01 12:55:42 +0100 |
commit | 39f042510cd733e3de357cf967e2d252aff5e135 (patch) | |
tree | 6be3e39ac923fc4de4a853cfa7320022282d35d7 | |
parent | 5935e33cbf16435efc411cddacf05f2f830bed4a (diff) | |
download | aur-39f042510cd733e3de357cf967e2d252aff5e135.tar.gz |
drop python2 and bump version
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 14 insertions, 24 deletions
@@ -1,33 +1,23 @@ # Maintainer: Grey Christoforo <first name [at] last name [dot] net> -pkgbase=('python-scikit-umfpack') -pkgname=('python-scikit-umfpack' 'python2-scikit-umfpack') -_module='scikit-umfpack' -pkgver='0.3.1' -pkgrel=2 +pkgname=python-scikit-umfpack +pkgver=0.3.2 +pkgrel=1 pkgdesc="Python interface to UMFPACK sparse direct solver." url="https://scikit-umfpack.github.io/scikit-umfpack" -depends=('suitesparse') -makedepends=('swig') +depends=('suitesparse' 'python-scipy' 'cython' 'python-numpy') +makedepends=('swig' 'python-setuptools' 'python-pypandoc') license=('BSD') -arch=('any') -source=("https://pypi.io/packages/source/s/scikit-umfpack/scikit-umfpack-${pkgver}.tar.gz") -md5sums=('08f96c32460f2c52788a3bf68f9403ee') +arch=('x86_64') +source=("https://github.com/scikit-umfpack/scikit-umfpack/archive/${pkgver}.tar.gz") +md5sums=('40f9cccda50df9b0a5efcd24521dae54') -prepare() { - cp -a "${srcdir}/${_module}-${pkgver}"{,-python2} +build() { + cd "scikit-umfpack-${pkgver}" + python setup.py build } -package_python-scikit-umfpack() { - depends+=('python' 'python-scipy' 'cython' 'python-numpy') - makedepends+=('python-setuptools' 'python-pypandoc') - cd "${srcdir}/${_module}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 -} - -package_python2-scikit-umfpack() { - depends+=('python2' 'python2-scipy' 'cython2' 'python2-numpy') - makedepends+=('python2-setuptools' 'python2-pypandoc') - cd "${srcdir}/${_module}-${pkgver}-python2" - python2 setup.py install --root="${pkgdir}" --optimize=1 +package() { + cd "scikit-umfpack-${pkgver}" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build } |