summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a6003e50151ff3359f3f0573bb08b32963127d9 (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
# SDR++ module for demodulating TETRA
# Maintainer: cropinghigh <joinmark60@gmail.com>
# Author: cropinghigh
pkgname=sdrpp-tetra-demodulator-git
pkgver=r18.9e3a757
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="SDR++ module for demodulating TETRA"
license=('GPL')
depends=('sdrpp-git')
makedepends=('git' 'cmake' 'sdrpp-headers-git' 'libosmocore' 'unzip')
provides=('sdrpp-tetra-demodulator')
conflicts=('sdrpp-tetra-demodulator')
source=("git+https://github.com/cropinghigh/sdrpp-tetra-demodulator")
url="https://github.com/cropinghigh/sdrpp-tetra-demodulator"
md5sums=('SKIP')

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

build() {
    cd "$srcdir/sdrpp-tetra-demodulator"
    cd src/decoder/etsi_codec-patches
    ./download_and_patch.sh
    cd ../../../
    mkdir build
    cd build
    cmake ..
    make
}

package() {
    cd "$srcdir/sdrpp-tetra-demodulator/build"
    make DESTDIR=$pkgdir install
}