# Maintainer: Tyler Veness # Contributor: James Duley pkgname=python-slycot-git pkgver=517.a40505a pkgrel=1 pkgdesc="Python wrapper for selected SLICOT routines, notably including solvers for Riccati, Lyapunov and Sylvester equations." arch=('i686' 'x86_64') url="http://github.com/python-control/Slycot" license=('GPL2') depends=('python-numpy') makedepends=('git' 'cmake' 'gcc-fortran' 'python-scikit-build') optdepends=() provides=('python-slycot') conflicts=('python-slycot') source=(git+https://github.com/python-control/Slycot.git) md5sums=('SKIP') pkgver() { cd "$srcdir/Slycot" echo $(git rev-list --count master).$(git rev-parse --short master) } prepare() { cd "$srcdir/Slycot" git submodule update --init } build() { cd "$srcdir/Slycot" # Link against the Generic NetLIB blas/lapack ABI. If openblas is installed # instead of blas, that one will provide the library. Same mechanism as in # Extra/python-numpy export BLA_VENDOR=Generic python setup.py build -G "Unix Makefiles" } check() { cd "$srcdir/Slycot" pytest } package() { export LDFLAGS="$LDFLAGS -shared" cd "$srcdir/Slycot" python setup.py install -G "Unix Makefiles" --prefix=/usr --root="${pkgdir}" --optimize=1 } # vim:set ts=2 sw=2 et: