summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70a3c7d64b9268ca0aaca77022a8249eb21614a0 (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
35
# Maintainer: Pieter Robyns <pieter.robyns@uhasselt.be>
# Upstream URL: https://github.com/rpp0/gr-lora
# Based on Yuval Adam <yuval at y3xz dot com>'s gr-gsm PKGBUILD

pkgname=gr-lora-git
pkgver=0.3
pkgrel=1
pkgdesc="GNURadio blocks for receiving LoRa modulated radio messages using SDR"
arch=('any')
url="https://github.com/rpp0/gr-lora"
license=(unknown)
depends=('gnuradio' 'libosmocore' 'boost' 'swig' 'liquid-dsp-git' 'python2-scipy' 'python2-numpy')
makedepends=('cmake')
provides=('gr-lora')
source=('git+https://github.com/rpp0/gr-lora')
sha1sums=('SKIP')
_gitname=gr-lora

pkgver() {
  cd $_gitname
  echo $(git describe --always | sed 's/-/./g')
}

build() {
  cd $_gitname
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd $_gitname
  cd build
  make DESTDIR=${pkgdir} install
}