summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2408c9fc9ae7f4a33852aa695ff21ea83479a515 (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
# Maintainer: Ernesto Castellotti <mail@ernestocastellotti.it>
# Ex Maintainer: Dan McCurry <dan.mc at protonmail dot com>
pkgname=soapysdrplay-git
pkgver=r62.b789d59
pkgrel=1
pkgdesc="Soapy SDR module for SDRPlay"
arch=('i686' 'x86_64')
url="http://www.sdrplay.com"
license=('MIT')
depends=('soapysdr-git' 'libsdrplay')
makedepends=('cmake')
install=${pkgname}.install
source=("$pkgname::git+https://github.com/pothosware/SoapySDRPlay.git")
md5sums=('SKIP')

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

prepare() {
        cd "$pkgname"
	mkdir build
}

build() {
	cd "$pkgname/build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make
}

package() {
	cd "$pkgname/build"
	make DESTDIR="$pkgdir/" install
	install -D -m644 $srcdir/$pkgname/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}