blob: 4a625de15ce7f2e7370db3018081cf3d391ecf09 (
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
|
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tuhh de>
_name=swiglpk
pkgname="python-${_name}"
pkgver=5.0.12
pkgrel=1
pkgdesc='A Python interface to the GLPK optimization solver'
arch=(any)
url='https://github.com/biosustain/swiglpk'
license=(GPL-3.0-or-later)
depends=(python glpk)
makedepends=(swig python-setuptools python-build python-installer python-wheel)
conflicts=(python-swiglpk-git)
source=("https://github.com/biosustain/swiglpk/archive/${pkgver}.tar.gz")
sha256sums=('3f629807740b8accc09f2618a39ce0c7f9391371519c1eee267166932ccf59d7')
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|