blob: 4953be79d64fd43853eaed6fad658fc04a11da4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
pkgbase=python-swiglpk
pkgname=('python-swiglpk' 'python2-swiglpk')
pkgdesc="A low-level Python interface to the GLPK optimization solver."
pkgver=4.65.1
pkgrel=1
arch=('any')
url='https://github.com/biosustain/swiglpk'
license=('GPL3')
makedepends=('swig' 'python-setuptools' 'python2-setuptools')
depends=('glpk')
source=("https://github.com/biosustain/swiglpk/archive/${pkgver}.tar.gz")
package_python-swiglpk() {
depends+=('python')
cd "${srcdir}/swiglpk-${pkgver}"
# Install the Python library.
python setup.py install --root="${pkgdir}" --optimize=1
}
package_python2-swiglpk() {
depends+=('python2')
cd "${srcdir}/swiglpk-${pkgver}"
# Install the Python 2 library.
python2 setup.py install --root="${pkgdir}" --optimize=1
}
md5sums=('8d364cad69416cebd6e405b22f71c14d')
|