summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca687951ff335270c17c4839fc68dc72b4331ba8 (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
37
38
39
40
41
# Maintainer: Forest Crossman <cyrozap at gmail dot com>
# Modified from gr-osmosdr-git PKGBUILD

pkgname=gr-cc1111-git
pkgver=6b5eb0
pkgrel=1
pkgdesc="CC1111 packet encoder/decoder for GNU Radio"
arch=('i686' 'x86_64')
url="https://github.com/funoverip/gr-cc1111"
license=('GPL3')
depends=(
    'gnuradio'
    'swig'
    )
makedepends=(
    'git'
    'cmake'
    'boost'
    )
source=('git+https://github.com/funoverip/gr-cc1111.git')
md5sums=('SKIP')

_gitname="gr-cc1111"

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

build() {
  cd $_gitname
  mkdir -p build
  cd build
  cmake -DPYTHON_EXECUTABLE=$(which python2) -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) -DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) -DCMAKE_INSTALL_PREFIX=/usr ../src/gr-cc1111
  make
}

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