summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 625e9049e447cf1e3f6a8e78785f83737f9d1861 (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
40
41
42
# Maintainer: Yann B├╝chau <nobodyinperson@posteo.de>
pkgname=python-polt-git
pkgver=1.0.0.r13.g235ccc1
pkgrel=1
epoch=
pkgdesc="Live plotting with Matplotlib"
arch=(any)
url="https://gitlab.com/nobodyinperson/python3-polt"
license=('GPL')
groups=()
depends=(python-matplotlib python-scipy python-click python-xdgspec gettext make)
makedepends=(python-setuptools)
checkdepends=()
optdepends=()
provides=("${pkgname%-git}")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+$url")
noextract=()
md5sums=(SKIP)
validpgpkeys=()

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

build () {
    cd "$srcdir/${pkgname%-git}"
    make locale
    python setup.py build
}

package () {
    cd "$srcdir/${pkgname%-git}"
    export PYTHONHASHSEED=0
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}