summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c986b8a472bf13ed403e9499634779a9ede0044d (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
# Maintainer: Ronny <ronny-aur[at]adke*org>
pkgname=hmcfgusb
pkgver=r94.18e63b2
pkgrel=1
pkgdesc="An application, which emulates the HomeMatic LAN configuration adapter-protocol"
arch=('any')
url="https://0bin.readthedocs.org/en/latest/://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/"
license=('custom')
depends=('libusb')
makedepends=('git')
source=("$pkgname"::'git://git.zerfleddert.de/hmcfgusb' 'hmland.service')
md5sums=('SKIP'
         'b0f73269a91b789e204c0f54ce5401fc')
pkgver() {
  cd "$srcdir/$pkgname"
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
}

build () {
	msg "Starting build..."
	cd "$srcdir/$pkgname"
	make
}
package() {
	mkdir -p "$pkgdir/opt/hmcfgusb"
	install -Dm644 ${srcdir}/$pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 ${srcdir}/hmland.service "$pkgdir/usr/lib/systemd/system/hmland.service"
	install -Dm755 ${srcdir}/$pkgname/{flash-hmcfgusb,flash-ota,hmland,hmsniff} "$pkgdir/opt/hmcfgusb"
}