blob: 2a51c2ce14ff33cfeed0dac045a9f26da78842d6 (
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
|
pkgname=rtl-wmbus-git
pkgver=r50.d2be82c
pkgrel=1
pkgdesc="Software defined receiver for wireless M-Bus with RTL-SDR"
arch=('i686' 'x86_64')
url=""
license=('BSD')
groups=()
depends=()
makedepends=('git' 'gcc' 'make')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('rtl-wmbus::git+https://github.com/xaelsouth/rtl-wmbus.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
make release 'CFLAGS=-Iinclude -std=gnu99'
}
package() {
cd "$srcdir/${pkgname%-git}"
install -D build/rtl_wmbus "$pkgdir/usr/bin/rtl_wmbus"
}
|