summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f973ab243969b3e470d6d3f8bd1a280bb1d3f66 (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
# Maintainer: Walter - "bWVAd2FsdGVyY2FzYW5vdmEueHljCg=="
# indent = tab
# tab-size = 4

pkgname='sgfmill-git'
_pkgname='sgfmill'
pkgver=1.1.1.r11.gc87cb41
pkgrel=1
pkgdesc="Sgfmill is a Python library for reading and writing Go game records using Smart Game Format (SGF)."
arch=('i686' 'x86_64')
url="https://github.com/mattheww/sgfmill"
license=('MIT')
depends=('python' 'python-sphinx' )
makedepends=('python-setuptools' 'git')
provides=('sgfmill')
conflicts=('sgfmill')
source=("$_pkgname::git+$url.git")
b2sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	git describe --long --abbrev=7 | sed 's/^sgfmill-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_pkgname"
	python setup.py build
}

package() {
	cd "$srcdir/$_pkgname"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}