summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ada25badcd7a906e99799c189be6c0725a76fb9b (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: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F

pkgname=gr-gsm-git
pkgver=r903.c097ce7
pkgrel=1
pkgdesc="Gnuradio blocks and tools for receiving GSM transmissions"
arch=('any')
url="https://github.com/ptrkrysik/gr-gsm"
license=(unknown)
depends=('gnuradio' 'libosmocore' 'boost' 'swig' 'log4cpp' 'python2-scipy' 'qwt5' 'gnuradio-companion' 'python2-pyqt4')
makedepends=('cmake')
provides=('gr-gsm')
source=('git+https://github.com/ptrkrysik/gr-gsm') 
sha1sums=('SKIP')
_gitname=gr-gsm

pkgver() {
  cd $_gitname
  printf "v%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: