summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90f4d3a5f71893cc65e3c8c1581c312679d2db7f (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
36
# Maintainer: Vadim Yanitskiy <axilirator@gmail.com>

pkgname=gr-iridium-git
pkgver=r362.0c9defb
pkgrel=1
epoch=1
pkgdesc="Gnuradio blocks and tools for receiving Iridium transmissions"
arch=('any')
url="https://github.com/muccc/gr-iridium"
license=('GPL3')
depends=('gnuradio' 'gnuradio-osmosdr' 'python')
makedepends=('git' 'cmake' 'boost')
provides=('gr-iridium')
source=('git+https://github.com/muccc/gr-iridium')
sha1sums=('SKIP')
_gitname=gr-iridium

pkgver() {
  cd "$_gitname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

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

# vim:set ts=2 sw=2 et: