diff options
author | Maximilian Stahlberg | 2021-02-06 15:21:03 +0100 |
---|---|---|
committer | Maximilian Stahlberg | 2021-02-06 15:22:02 +0100 |
commit | 1c5a30bb31509ffe22746d2f9dd27aa407ad2651 (patch) | |
tree | 624937665478773231044f372b0936e3ae423ff2 | |
parent | 2e858d0d913183798da98364f4c94b9d19ff612c (diff) | |
download | aur-python-pyscipopt-git.tar.gz |
Use awk instead of sed and use original git folder name.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 12 |
3 files changed, 12 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = python-pyscipopt-git pkgdesc = A Python interface to the SCIP Optimization Suite. Git version. pkgver = 3.1.0.r3.gdc8e592 - pkgrel = 2 + pkgrel = 3 url = https://www.scipopt.org/ arch = any license = MIT @@ -12,7 +12,7 @@ pkgbase = python-pyscipopt-git depends = scipoptsuite provides = python-pyscipopt conflicts = python-pyscipopt - source = python-pyscipopt-git::git+https://github.com/SCIP-Interfaces/PySCIPOpt.git + source = git+https://github.com/SCIP-Interfaces/PySCIPOpt.git md5sums = SKIP pkgname = python-pyscipopt-git diff --git a/.gitignore b/.gitignore index dff10aeee125..4320154e3478 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ -pkg -src -*.tar.gz -*.pkg.tar.xz -python-pyscipopt-git +/pkg +/src +/*.pkg.tar.xz +/PySCIPOpt @@ -2,7 +2,7 @@ pkgname=python-pyscipopt-git pkgver=3.1.0.r3.gdc8e592 -pkgrel=2 +pkgrel=3 pkgdesc='A Python interface to the SCIP Optimization Suite. Git version.' arch=('any') url='https://www.scipopt.org/' @@ -11,23 +11,23 @@ depends=('python' 'scipoptsuite') makedepends=('git' 'cython' 'python-setuptools') provides=('python-pyscipopt') conflicts=('python-pyscipopt') -source=("${pkgname}::git+https://github.com/SCIP-Interfaces/PySCIPOpt.git") +source=("git+https://github.com/SCIP-Interfaces/PySCIPOpt.git") md5sums=('SKIP') build() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/PySCIPOpt" python setup.py build } check() { _arch="linux-$(uname -m)" - _pymajver="$(python -V | sed 's/Python \([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/')" + _pymajver="$(python -V | awk '{print $2}' | awk -F. '{print $1"."$2}')" - cd "${srcdir}/${pkgname}/build/lib.${_arch}-${_pymajver}" + cd "${srcdir}/PySCIPOpt/build/lib.${_arch}-${_pymajver}" python -Bc "import pyscipopt" } package() { - cd "${srcdir}/${pkgname}" + cd "${srcdir}/PySCIPOpt" python setup.py install --root=${pkgdir} --optimize=1 --skip-build } |