Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cubicsdr: add package #4221

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cubicsdr
65 changes: 65 additions & 0 deletions packages/cubicsdr/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

# Initial PKGBUILD from AUR.
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Josef Miegl <[email protected]>
# Contributor: Romain Porte <[email protected]>
# Contributor: Michal Krenek (Mikos) <[email protected]>
# Contributor: valvetime <[email protected]>
# Contributor: Dan McCurry <dan.mccurry at linux dot com>
# Contributor: Tom Swartz <[email protected]>

pkgname=cubicsdr
_pkgname=CubicSDR
pkgver=0.2.7
pkgrel=1
pkgdesc='Cross-Platform Software-Defined Radio Application.'
arch=('x86_64' 'aarch64' 'armv7h' 'i686')
groups=('blackarch' 'blackarch-radio')
url="https://github.com/cjcliffe/CubicSDR"
license=("GPL2")
depends=( 'gcc-libs' 'glibc' 'hamlib' 'hicolor-icon-theme' 'libglvnd' 'libpulse'
'liquid-dsp' 'soapysdr' 'wxwidgets-common' 'wxwidgets-gtk3' 'freeglut')
makedepends=('cmake')
optdepends=(
'fftw: FFTW support'
'limesuite: support for LimeSDR'
'soapyairspy: support for Airspy R2 and Airspy Mini'
'soapyhackrf: support for HackRF'
'soapyosmo: support for MiriSDR and RFSpace'
'soapyplutosdr: support for PlutoSDR'
'soapyremote: use any SoapySDR device remotely over network'
'soapyrtlsdr: support for RTL-SDR (RTL2832U) dongles'
'soapysdrplay: support for SDRplay RSP'
)
source=( "$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
"cubicsdr.desktop")
sha512sums=('baffb0f26cee4b76db0d29c3084d459806db9d0b36c73efe0ab5aa11edcd67fc87836e170658c2ce3b0b2bf55b534e2e09193d60d17938b6dbbef52f0a813f7e'
'5f15f8852868b0c0b5e638d5f50a9f3a4a51aa5cbbab4ffafb732f980420b4dff0e30a17ccbd117ca0521c03610b36fe90bd2c585527652718d349777f87f99c')

_archive="$_pkgname-$pkgver"

build() {
cd "$_archive"

cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DUSE_HAMLIB=ON \
-DENABLE_DIGITAL_LAB=ON
cmake --build build
}

package() {
cd "$_archive"

DESTDIR="$pkgdir" cmake --install build

install -Dm644 -t "$pkgdir/usr/share/applications" "$srcdir/cubicsdr.desktop"
install -Dm644 -t "$pkgdir/usr/share/icons/hicolor/256x256/apps" \
"$pkgdir/usr/share/cubicsdr/CubicSDR.png"

ln -s /usr/bin/CubicSDR "$pkgdir/usr/bin/cubicsdr"
}
Loading