diff options
author | bemasher | 2015-06-29 21:29:23 -0600 |
---|---|---|
committer | bemasher | 2015-06-29 21:29:23 -0600 |
commit | c53d8802a3abab2d0bbf74dbc66b81b5f44616fc (patch) | |
tree | fa078af305bc58e25660a39ff356cee64029bc8e | |
download | aur-c53d8802a3abab2d0bbf74dbc66b81b5f44616fc.tar.gz |
Initial import.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rwxr-xr-x | PKGBUILD | 39 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d343b1f42b6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = rtlamr + pkgdesc = An rtl-sdr receiver for Itron ERT compatible smart meters operating in the 900MHz ISM band. + pkgver = 0.6.2 + pkgrel = 1 + url = https://github.com/bemasher/rtlamr + arch = x86_64 + arch = i686 + license = AGPL3 + makedepends = git + depends = go + depends = rtl-sdr + options = !strip + options = !emptydirs + +pkgname = rtlamr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..9a0b5da7e1b2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: bemasher <bemasher@gmail.com> + +pkgname=rtlamr +pkgver=0.6.2 +pkgrel=1 +pkgdesc="An rtl-sdr receiver for Itron ERT compatible smart meters operating in the 900MHz ISM band." +arch=('x86_64' 'i686') +url="https://github.com/bemasher/rtlamr" +license=('AGPL3') +depends=('go' 'rtl-sdr') +makedepends=('git') +options=('!strip' '!emptydirs') +_gourl=github.com/bemasher/rtlamr + +build() { + GOPATH="$srcdir" go get -v -x ${_gourl}/... +} + +check() { + GOPATH="$GOPATH:$srcdir" go test -v -x ${_gourl}/... +} + +package() { + mkdir -p "$pkgdir/usr/bin" + install -p -m755 "$srcdir/bin/"* "$pkgdir/usr/bin" + + mkdir -p "$pkgdir/$GOPATH" + cp -Rv --preserve=timestamps "$srcdir/"{src,pkg} "$pkgdir/$GOPATH" + + # Package license (if available) + for f in LICENSE COPYING LICENSE.* COPYING.*; do + if [ -e "$srcdir/src/$_gourl/$f" ]; then + install -Dm644 "$srcdir/src/$_gourl/$f" \ + "$pkgdir/usr/share/licenses/$pkgname/$f" + fi + done +} + +# vim:set ts=2 sw=2 et:
\ No newline at end of file |