summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec74d6c5f124456781c927c0232e09a37c3c9f7a (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
35
36
37
38
39
# Maintainer: Jan Heczko <jan dot heczko at gmail dot com>
pkgname=python-pyipopt
pkgver=r146.cd3d96f
pkgrel=1
pkgdesc="A Python connector to IPOPT"
arch=('i686' 'x86_64')
url="https://github.com/g-braeunlich/pyipopt"
license=('BSD')
groups=()
depends=('coin-or-ipopt' 'python-numpy'	'gcc')
makedepends=('git')
optdepends=('python-algopy')
provides=('python-pyipopt')
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git+http://github.com/g-braeunlich/pyipopt.git')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd pyipopt
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd pyipopt
	python setup.py build
}

package() {
	cd pyipopt
	python setup.py install --root=$pkgdir
}