summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..145a0f3ae50
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}