summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7741ab1b07b54cfce262bcdd2b41ce2658f3a6a2 (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>
# Contributor: Robin Nehls <aur@manol.is>

pkgname=gr-fosphor-git
pkgver=r133.7b6b996
pkgrel=2
pkgdesc="GNU Radio block for RTSA-like spectrum visualization using OpenCL and OpenGL acceleration"
arch=('any')
url="https://osmocom.org/projects/sdr/wiki/fosphor"
license=('GPL3')
depends=('gnuradio' 'pybind11' 'boost-libs' 'glfw' 'ocl-icd' 'freetype2')
makedepends=('git' 'cmake' 'boost' 'opencl-headers')
provides=('gr-fosphor')
source=('git+https://gitea.osmocom.org/sdr/gr-fosphor.git')
sha1sums=('SKIP')
_gitname=gr-fosphor

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: