summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9507b431755ee0550f1eb7c4c8fce4176ad2d764 (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
# Maintainer: zezadas <zezadasmoreira at gmail dot com>

pkgname=gr-binviz-git
pkgver=v5.10ff87e
pkgrel=1
pkgdesc="A GNU Radio Companion out-of-tree module for visualization of char data types"
arch=('any')
url="https://github.com/CBrunsch/BinViz/tree/master/gr-binviz"
license=(unknown)
depends=('gnuradio<3.9' 'libosmocore' 'boost' 'swig' 'cimg' 'cppunit')
makedepends=('cmake')
provides=('gr-binviz')
source=('git+https://github.com/CBrunsch/BinViz.git') 
sha1sums=('SKIP')
_gitname=BinViz

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

#prepare() {
  #patch -p0 -i ../utils_itpp.patch
#}

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

package() {
  cd "$_gitname"/gr-binviz/build
  make DESTDIR=${pkgdir} install
}

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