summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f89632bc2a776de6b3deb6701a35806516d9da2f (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
# Maintainer: Kai Muenz <kai+archlinux@muenz.net>
_pkgname=odr-mmbtools-common
pkgname=$_pkgname-git
pkgver=1.0.r56.ge644365
pkgrel=1
pkgdesc="Opendigitalradio code test common to all ODR-mmbtools"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/Opendigitalradio/$_pkgname"
license=('GPL')
groups=('ODR')
depends=('zeromq')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "1.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_pkgname"
	./bootstrap.sh
	./configure --prefix=/usr
	make
}

package() {
	cd "$_pkgname"
	make DESTDIR="$pkgdir/" install
	mv "${pkgdir}/usr/bin/common-test" "${pkgdir}/usr/bin/mmbtools-common-test"
}