summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Stahlberg2017-12-12 16:24:54 +0100
committerMaximilian Stahlberg2017-12-12 16:24:54 +0100
commitf8fe054d194e055c17e5d3aee1c2838be3501218 (patch)
tree31ccbbc965f8823768ffe8898ebf29316c55490c
downloadaur-f8fe054d194e055c17e5d3aee1c2838be3501218.tar.gz
Initial package for PySCIPOpt 1.2.0.
-rw-r--r--.SRCINFO23
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD30
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..afb2c3a9f8f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Tue Dec 12 15:23:26 UTC 2017
+pkgbase = python-pyscipopt
+ pkgdesc = A Python Interface to the SCIP Optimization Suite.
+ pkgver = 1.2.0
+ pkgrel = 1
+ url = http://scip.zib.de
+ arch = any
+ license = MIT
+ makedepends = cython
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://github.com/SCIP-Interfaces/PySCIPOpt/archive/v1.2.0.tar.gz
+ md5sums = 7d0713c0c0bab03883861afab6cbceb3
+
+pkgname = python-pyscipopt
+ depends = scipoptsuite
+ depends = python
+
+pkgname = python2-pyscipopt
+ depends = scipoptsuite
+ depends = python2
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a55a43d8718
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+*.tar.gz
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e680c4b2bc1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
+
+pkgbase=('python-pyscipopt')
+pkgname=('python-pyscipopt' 'python2-pyscipopt')
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='A Python Interface to the SCIP Optimization Suite.'
+arch=('any')
+url='http://scip.zib.de'
+license=('MIT')
+makedepends=('cython' 'python-setuptools' 'python2-setuptools')
+source=("https://github.com/SCIP-Interfaces/PySCIPOpt/archive/v${pkgver}.tar.gz")
+
+package_python-pyscipopt() {
+ depends=('scipoptsuite' 'python')
+
+ cd "${srcdir}/PySCIPOpt-${pkgver}"
+
+ python setup.py install --root=${pkgdir} --optimize=1
+}
+
+package_python2-pyscipopt() {
+ depends=('scipoptsuite' 'python2')
+
+ cd "${srcdir}/PySCIPOpt-${pkgver}"
+
+ python2 setup.py install --root=${pkgdir} --optimize=1
+}
+
+md5sums=('7d0713c0c0bab03883861afab6cbceb3')