summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f724fd4d676b3157bc74ee8c2cad1c3ee4e08c93 (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
42
43
44
45
46
47
48
49
50
# Maintainer: denvit <denys@denv.it>
pkgname=telive
pkgver=r114.64d614a
pkgrel=1
epoch=3
pkgdesc="application for monitoring and listening to TETRA voice channels"
arch=('any')
url="https://github.com/sq5bpf/telive"
license=('GPL')
groups=()
depends=('gnuradio' 'gnuradio-companion' 'python2' 'alsa-utils' 'vorbis-tools' 'sox' 'icu58')
makedepends=('git' 'patch')
optdepends=('google-earth: view SIP location reports on a map'
'osmo-tetra-sq5bpf-git: gnuradio based TETRA receiver')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(${pkgname}::"git+https://github.com/sq5bpf/telive")
noextract=()
md5sums=('SKIP')


build() {
  cd "$srcdir/$pkgname"
  make -j4
}


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


package() {

  cd "$srcdir/$pkgname"
  T=$pkgdir/tetra
  mkdir -p "$T/in" "$T/out" "$T/log" "$T/tmp" "$T/bin"
  cp bin/* $T/bin
  touch $T/log/telive.log
  cp -r $srcdir/telive $pkgdir/tetra
  #make /tetra writeable by users of group wheel
  chown  -R :wheel $pkgdir/tetra

}