summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a13c55593a3e71f18135ed60c46cbd7d6df1dd9b (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
# Maintainer: f4iey <f4iey@f6kgl.ampr.org>
pkgname=soapyfcdpp-git
pkgver=r57.45fb07c
pkgrel=1
pkgdesc="Soapy SDR plugin for Funcube Dongle Pro+"
arch=('any')
license=('BSL')
makedepends=('git' 'cmake')
depends=('soapysdr' 'alsa-lib' 'hidapi')
url="https://github.com/pothosware/SoapyFCDPP"
source=($pkgname::"git+$url.git")
sha256sums=('SKIP')

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

prepare(){
    cd $srcdir/$pkgname
    mkdir build && cd build
    cmake ..
}

build(){
    cd $srcdir/$pkgname/build
    make
}

package() {
    cd $srcdir/$pkgname/build
    make DESTDIR=$pkgdir install
}