# Contributor: Jakob Meier # Maintainer: Jakob Meier pkgname=welle-io pkgver=2.4 pkgrel=2 pkgdesc="A DAB/DAB+ Software Defined Radio (SDR)" url="https://www.welle.io/" arch="all" license="GPL-2.0-or-later" # potentally missing: airspy-dev makedepends=" cmake faad2-dev fftw-dev lame-dev librtlsdr-dev mpg123-dev qt5-qtbase-dev qt5-qtcharts-dev qt5-qtdeclarative-dev qt5-qtmultimedia-dev qt5-qtquickcontrols2-dev qt5-qttools-dev samurai soapy-sdr-dev alsa-lib-dev " subpackages="$pkgname-doc welle-cli:cli" source="welle-$pkgver.tar.gz::https://github.com/AlbrechtL/welle.io/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/welle.io-$pkgver" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi # DCMAKE_EXE_LINKER_FLAGS required, # to prevent segfault when trying to interact with device cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DRTLSDR=ON \ -DSOAPYSDR=ON \ -DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,stack-size=512000 \ $CMAKE_CROSSOPTS cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } cli() { pkgdesc="$pkgdesc (cli frontend)" amove usr/bin/welle-cli } sha512sums=" 2d03388ed9e39e400a423ced88616f267da0516f6db9c0391dcc8fb96dc02898fb36ee8dcbabe3024f681a7ba2cc72e478236ce2f19f0fa16ccd769989331927 welle-2.4.tar.gz "