summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 145a0f3ae50923050ec0b4ab62eb265474a389d8 (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
pkgname=dmrconfig-git
pkgver=r134.a4c5f89
pkgrel=1
pkgdesc="DMRconfig is a utility for programming digital radios via USB programming cable."
arch=('x86_64')
depends=('libusb>=1.0')
license=('Apache 2.0')
url="https://github.com/sergev/dmrconfig.git"
source=('git+https://github.com/sergev/dmrconfig.git')
sha256sums=('SKIP')
depends=('ncurses')


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

build() {
	cd $srcdir/dmrconfig
	make
}

package() {
	cd $srcdir/dmrconfig
	install -D -m755 dmrconfig  $pkgdir/usr/bin/dmrconfig
	install -D -m644 99-dmr.rules $pkgdir/usr/lib/udev/rules.d/99-dmr.rules
}