summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa96b20b4664a95b263acc9f9252ca83bcc30503 (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: Michal Krenek (Mikos) <m.krenek@gmail.com>

pkgname=soapyairspy-git
pkgver=r18.e206492
pkgrel=1
epoch=2
pkgdesc="SoapySDR plugin for Airspy R2 and Airspy Mini"
arch=('any')
url="https://github.com/pothosware/SoapyAirspy"
license=('MIT')
depends=('soapysdr' 'airspy')
makedepends=('git')
provides=('soapyairspy')
conflicts=('soapyairspy')
source=(${pkgname}::"git+https://github.com/pothosware/SoapyAirspy.git")
sha256sums=('SKIP')

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

build() {
        cd "${srcdir}/${pkgname}"
        mkdir -p build
        cd build
        cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
        make -j4
}

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