summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0fad3c6d2384602f78d8b8c9b7307bf3bfce70d (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: Marius Lindvall <(firstname) {cat} varden {dog} info>

pkgname=python-maxfield-git
pkgver=4.0.r18.gc12493f
pkgrel=1
pkgdesc='An Ingress Linking and Fielding Strategy Generator'
arch=('any')
license=('GPL3')
url="https://github.com/tvwenger/maxfield"
depends=('python-numpy' 'python-networkx' 'python-scipy' 'python-or-tools' 'python-matplotlib' 'python-imageio' 'python-gifsicle')
makedepends=('python' 'python-setuptools' 'git')
conflicts=('python-maxfield')
provides=('python-maxfield')
source=('git+https://github.com/tvwenger/maxfield.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/maxfield"
	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package () {
	cd "$srcdir/maxfield"
	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}