summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 358008d3998e4e55846dca945d5115e4734848c4 (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
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>

pkgbase=('python-picos')
pkgname=('python-picos' 'python2-picos')
pkgver=1.2.0
pkgrel=1
pkgdesc='A Python interface to conic optimization solvers.'
arch=('any')
url='https://gitlab.com/picos-api/picos'
license=('GPL3')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://gitlab.com/picos-api/picos/-/archive/v${pkgver}/picos-v${pkgver}.tar.gz")

package_python-picos() {
	depends=('python-numpy' 'python-cvxopt')
	conflicts=('python-picos-git')

	cd "${srcdir}/picos-v${pkgver}"

	python setup.py install --root=${pkgdir}
}

package_python2-picos() {
	depends=('python2-numpy' 'python2-cvxopt')
	conflicts=('python2-picos-git')

	cd "${srcdir}/picos-v${pkgver}"

	python2 setup.py install --root=${pkgdir}
}

md5sums=('486dd2f41832d85dc9d2fd6618e32caa')