summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e8127873c1aa7ef7edbbab94dad71acb37f1c6d (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
# Maintainer: Tobias Martin <tm-x at gmx dot net>

_pkgname=gr-dvbt
pkgname=${_pkgname}-git
pkgver=r467.a9fbb78
pkgrel=1
pkgdesc="Opensource implementation of DVB-T encoder/decoder according to ETSI 300 744 using gnuradio"
arch=('i686' 'x86_64')
url="https://github.com/BogdanDIA/gr-dvbt"
license=('GPL')
depends=('gnuradio' 'python2')
makedepends=('git' 'cmake' 'boost')
source=("${pkgname}::git+https://github.com/BogdanDIA/${_pkgname}")
md5sums=('SKIP')

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

build() {
  export PYTHON=python2
  cd "$srcdir/$pkgname"
  msg "Starting build."
  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 -Wno-dev ../
  make
}

package() {
  cd "$srcdir/$pkgname/build/"
  make DESTDIR="$pkgdir" install
}

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