summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 317c9d2b1b86ff726020e8dddbfba1d1cdc2ef3c (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: endlesseden
_pkgname=python-mot-epg
pkgname=$_pkgname-git
pkgver=1.0.3.r9.g4b84f1f
pkgrel=1
pkgdesc="Plugin to the python-mot library to handle DAB EPG binary encoding"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/opendigitalradio/$_pkgname"
license=('GPL')
groups=()
depends=('python' 'python-mot')
checkdepends=()
optdepends=()
provides=("$_pkgname" "$pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "$(git describe --tags | sed 's|-|.|g' | sed 's/v//g').r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


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

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