diff options
author | Maximilian Stahlberg | 2017-10-25 21:54:47 +0200 |
---|---|---|
committer | Maximilian Stahlberg | 2017-10-25 21:55:30 +0200 |
commit | 7742592438edcde696739211d28c7004bde056c1 (patch) | |
tree | 9d5a75709a631bb0dcc987fbff09a620e41f3712 | |
download | aur-7742592438edcde696739211d28c7004bde056c1.tar.gz |
Initial package for swiglpk 1.4.4.
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3bac8555d410 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Wed Oct 25 19:55:17 UTC 2017 +pkgbase = python-swiglpk + pkgdesc = A low-level Python interface to the GLPK optimization solver. + pkgver = 1.4.4 + pkgrel = 1 + url = https://github.com/biosustain/swiglpk + arch = any + license = gpl3 + makedepends = swig + depends = glpk + source = https://github.com/biosustain/swiglpk/archive/1.4.4.tar.gz + md5sums = 71a1693349df3f095ebe5bc713b3dd92 + +pkgname = python-swiglpk + depends = glpk + depends = python + +pkgname = python2-swiglpk + depends = glpk + depends = python2 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..a55a43d87185 --- /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 000000000000..95d7731d9110 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# 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=1.4.4 +pkgrel=1 +arch=('any') +url='https://github.com/biosustain/swiglpk' +license=('gpl3') +makedepends=('swig') +depends=('glpk') + +source=("https://github.com/biosustain/swiglpk/archive/${pkgver}.tar.gz") + +package_python-swiglpk() { + makedepends+=('python-setuptools') + depends+=('python') + + cd "${srcdir}/swiglpk-${pkgver}" + + # Install the Python library. + python setup.py install --root="${pkgdir}" --optimize=1 +} + +package_python2-swiglpk() { + makedepends+=('python2-setuptools') + depends+=('python2') + + cd "${srcdir}/swiglpk-${pkgver}" + + # Install the Python 2 library. + python2 setup.py install --root="${pkgdir}" --optimize=1 +} + +md5sums=('71a1693349df3f095ebe5bc713b3dd92') |