summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40cdaebd24c33e9d37cd2ad476da5b610eda5dd1 (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
# Maintainer: sasvari
_pkgname="SL-CLI"
pkgname="python-sl-cli-git"
pkgver=1.1.r163.g6b53572
pkgrel=1
pkgdesc="Stockholms Lokaltrafik - Command Line Interface"
arch=(any)
url="https://github.com/Sebelino/$_pkgname"
license=("MIT")
depends=("python" "python-xmltodict")
makedepends=("git")
provides=("python-sl-cli")
provides=("python-sl-cli")
source=("git+https://github.com/Sebelino/$_pkgname.git")

pkgver() {
	cd "$srcdir/$_pkgname"
	git describe | sed 's/^v//; s/-/.r/; s/-/./'
}

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

package() {
	cd "$srcdir/$_pkgname"
	python setup.py install --root="$pkgdir/" --prefix="/usr"
}
md5sums=('SKIP')