summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f7ad325be9989b163eff67120ce3f99454c75dd3 (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: SteamedFish <steamedfish@hotmail.com>

pkgname=csdr-eti-git
pkgver=r42.0aba1a3
pkgrel=1
pkgdesc="DAB ETI decoder as a csdr module"
arch=('i686' 'x86_64' 'aarch64')
url="https://github.com/jketterl/csdr-eti"
license=('GPL3')
depends=('csdr' 'fftw')
makedepends=('git' 'cmake')
conflicts=('csdr-eti')
provides=('csdr-eti')
source=("$pkgname"::"git+https://github.com/jketterl/csdr-eti.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    # use git tag or fall back to number of revisions
    ( set -o pipefail
        git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
    )
}

build() {
	cmake -B build -S "$srcdir/$pkgname" \
		-DCMAKE_INSTALL_PREFIX=/usr

	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir/" install
}