summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c48994a248642b0af3683337a0a58d617abf5d9 (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
# Maintainer: Rihards Skuja <rhssk at posteo dot eu>
# Contributor: Masoud <mpoloton@gmail.com>
# Contributor: valvetime <valvetimepackages@gmail.com>
# Contributor: Tom Swartz <tom@tswartz.net>

pkgname=soapyrtlsdr-git
pkgver=0.3.2.r1.g8277756
pkgrel=1
pkgdesc="SoapySDR RTL-SDR Support Module"
arch=('any')
url="https://github.com/pothosware/SoapyRTLSDR"
license=('MIT')
depends=('soapysdr' 'rtl-sdr')
makedepends=('git' 'cmake')
provides=('soapyrtlsdr')
conflicts=('soapyrtlsdr')
source=("$pkgname::git+https://github.com/pothosware/SoapyRTLSDR.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    git describe --long | sed 's/^soapy-rtl-sdr-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$pkgname"
    cmake -B build \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -Wno-dev
    make -C build
}

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