summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fb5fecb55a431f1023857e6bdbb87978fd64d55 (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
# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=dsd
pkgver=1.6.0
pkgrel=2
pkgdesc="Decoder for P25, ProVoice, X2-TDMA, DMR/MOTOTRBO, NXDN"
arch=('i686' 'x86_64')
url="https://github.com/szechyjs/dsd"
license=('custom:copyright')
depends=('mbelib')
source=("dsd-$pkgver.tgz::https://github.com/szechyjs/dsd/archive/v${pkgver}.tar.gz")
md5sums=('e1c8faf8b0156215ffefee6a614e07a3')

prepare() {
    cd "$srcdir/$pkgname-$pkgver"
    sed -i -e 's/mbe_processAmbe2250Dataf/mbe_processAmbe2450Dataf/' \
           -e 's/mbe_processAmbe3600x2250Framef/mbe_processAmbe3600x2450Framef/' \
        dsd_mbe.c
}

build() {
    cd "$srcdir/$pkgname-$pkgver"

    # ./configure is baloney
    make DEST_BASE="/usr"
}

package() {
    cd "$srcdir/$pkgname-$pkgver"

    install -d "$pkgdir/usr/bin"
    make install DEST_BIN="$pkgdir/usr/bin"
    install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
    install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/$pkgname.txt"
}