summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cd1c24808f557d84bf94423912006579311ce79 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Josef Miegl <josef@miegl.cz>
# Contributor: Romain Porte <microjoe@microjoe.org>
# Contributor: Michal Krenek (Mikos) <m.krenek@gmail.com>
# Contributor: valvetime <valvetimepackages@gmail.com>
# Contributor: Dan McCurry <dan.mccurry at linux dot com>
# Contributor: Tom Swartz <tom@tswartz.net>

pkgname=cubicsdr
pkgver=0.2.7
pkgrel=1
pkgdesc="Cross-Platform Software-Defined Radio Application"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="https://github.com/cjcliffe/CubicSDR"
license=('GPL')
depends=('libpulse' 'wxwidgets-gtk3' 'wxwidgets-common' 'soapysdr' 'liquid-dsp-git')
optdepends=('fftw: FFTW support'
            'soapyrtlsdr: support for RTL-SDR (RTL2832U) dongles'
            'soapyairspy: support for Airspy R2 and Airspy Mini'
            'soapysdrplay: support for SDRplay RSP'
            'soapyhackrf: support for HackRF'
            'limesuite: support for LimeSDR'
            'soapyosmo: support for MiriSDR and RFSpace'
            'soapyplutosdr: support for PlutoSDR'
            'soapyremote: use any SoapySDR device remotely over network'
            'hamlib: hamlib support')
makedepends=('git' 'cmake' 'libicns')
install="${pkgname}.install"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cjcliffe/CubicSDR/archive/${pkgver}.tar.gz")
sha256sums=('790f851e08f1068081a8593dfd4a149c7414e7d70c1f5cafd287331df493b811')

build() {
  cd "CubicSDR-${pkgver}"
  mkdir -p build
  cd build

  # Determine if hamlib should be enabled
  if rigctl -V &>/dev/null; then
    _hamlib='-DUSE_HAMLIB=1';
    msg2 "hamlib found and enabled!"
  else
    _hamlib='';
    msg2 "hamlib not found"
  fi

  cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DwxWidgets_CONFIG_EXECUTABLE=$(which wx-config) \
    $_hamlib
  make
}

package() {
  cd "CubicSDR-${pkgver}/build"
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: