diff options
author | Maximilian Stahlberg | 2021-02-06 14:56:26 +0100 |
---|---|---|
committer | Maximilian Stahlberg | 2021-02-06 14:56:26 +0100 |
commit | 3d7740f0cd823666218a3261c1a491ac28a3646d (patch) | |
tree | 211c8271a55927eb72fb39813a57292c01e917a9 | |
parent | c88fc1a4bfc8591cfb1181aeda767019f685670e (diff) | |
download | aur-3d7740f0cd823666218a3261c1a491ac28a3646d.tar.gz |
Make check() more robust.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 7 deletions
@@ -1,8 +1,8 @@ pkgbase = python-pyscipopt - pkgdesc = A Python Interface to the SCIP Optimization Suite. + pkgdesc = A Python interface to the SCIP Optimization Suite. pkgver = 3.1.0 - pkgrel = 1 - url = http://scip.zib.de + pkgrel = 2 + url = https://www.scipopt.org/ arch = any license = MIT makedepends = cython @@ -2,10 +2,10 @@ pkgname=python-pyscipopt pkgver=3.1.0 -pkgrel=1 -pkgdesc='A Python Interface to the SCIP Optimization Suite.' +pkgrel=2 +pkgdesc='A Python interface to the SCIP Optimization Suite.' arch=('any') -url='http://scip.zib.de' +url='https://www.scipopt.org/' license=('MIT') depends=('python' 'scipoptsuite') makedepends=('cython' 'python-setuptools') @@ -19,7 +19,10 @@ build() { } check() { - cd "${srcdir}/PySCIPOpt-${pkgver}/build/lib."* + _arch="linux-$(uname -m)" + _pymajver="$(python -V | sed 's/Python \([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')" + + cd "${srcdir}/PySCIPOpt-${pkgver}/build/lib.${_arch}-${_pymajver}" python -Bc "import pyscipopt" } |