From 11b822af5473452f41659a7b6cd19b9e23c62db3 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 23 Jul 2022 04:08:18 -0400 Subject: [PATCH 1/2] New package: airspyhf-1.6.8 closes #38198 --- common/shlibs | 1 + srcpkgs/airspyhf/template | 37 +++++++++++++++++++++++++++++++++++++ srcpkgs/libairspyhf | 1 + srcpkgs/libairspyhf-devel | 1 + 4 files changed, 40 insertions(+) create mode 100644 srcpkgs/airspyhf/template create mode 120000 srcpkgs/libairspyhf create mode 120000 srcpkgs/libairspyhf-devel diff --git a/common/shlibs b/common/shlibs index c0b708dd7a3d..5c9bbf5c30a5 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4175,3 +4175,4 @@ libjaylink.so.0 libjaylink-0.2.0_1 libnvidia-container.so.1 libnvidia-container-1.10.0_1 libnvidia-container-go.so.1 libnvidia-container-1.10.0_1 libqtspell-qt5.so.1 qtspell-1.0.1_1 +libairspyhf.so.0 libairspyhf-1.6.8_1 diff --git a/srcpkgs/airspyhf/template b/srcpkgs/airspyhf/template new file mode 100644 index 000000000000..dc306e6d3333 --- /dev/null +++ b/srcpkgs/airspyhf/template @@ -0,0 +1,37 @@ +# Template file for 'airspyhf' +pkgname=airspyhf +version=1.6.8 +revision=1 +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libusb-devel" +short_desc="Usermode driver and tools for Airspy HF+" +maintainer="classabbyamp " +license="BSD-3-Clause" +homepage="https://github.com/airspy/airspyhf" +distfiles="https://github.com/airspy/airspyhf/archive/refs/tags/${version}.tar.gz" +checksum=cd1e5ae89e09b813b096ae4a328e352c9432a582e03fd7da86760ba60efa77ab + +post_install() { + vlicense LICENSE +} + +libairspyhf_package() { + short_desc+=" - library" + pkg_install() { + vmove usr/lib/*.so.* + vsed -e 's/GROUP="plugdev"/\0, TAG+="uaccess"/' -i tools/52-airspyhf.rules + vinstall tools/52-airspyhf.rules 644 usr/lib/udev/rules.d/ + } +} + +libairspyhf-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/libairspyhf b/srcpkgs/libairspyhf new file mode 120000 index 000000000000..9a1c1cdae341 --- /dev/null +++ b/srcpkgs/libairspyhf @@ -0,0 +1 @@ +airspyhf \ No newline at end of file diff --git a/srcpkgs/libairspyhf-devel b/srcpkgs/libairspyhf-devel new file mode 120000 index 000000000000..9a1c1cdae341 --- /dev/null +++ b/srcpkgs/libairspyhf-devel @@ -0,0 +1 @@ +airspyhf \ No newline at end of file From afc4be65a9273097b63e23fa261d3d8021cf74f1 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 23 Jul 2022 04:22:58 -0400 Subject: [PATCH 2/2] New package: SDRPlusPlus-1.0.4 closes #38200 --- srcpkgs/SDRPlusPlus/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/SDRPlusPlus/template diff --git a/srcpkgs/SDRPlusPlus/template b/srcpkgs/SDRPlusPlus/template new file mode 100644 index 000000000000..9651aeca246f --- /dev/null +++ b/srcpkgs/SDRPlusPlus/template @@ -0,0 +1,16 @@ +# Template file for 'SDRPlusPlus' +pkgname=SDRPlusPlus +version=1.0.4 +revision=1 +build_style=cmake +configure_args="-DOPT_BUILD_PLUTOSDR_SOURCE=0" +hostmakedepends="pkg-config" +makedepends="fftw-devel glfw-devel volk-devel libzstd-devel glew-devel libusb-devel + librtlsdr-devel SoapySDR-devel libairspy-devel libairspyhf-devel libhackrf-devel + rtaudio-devel alsa-lib-devel pulseaudio-devel jack-devel" +short_desc="Open source SDR software" +maintainer="classabbyamp " +license="GPL-3.0-only" +homepage="https://github.com/AlexandreRouma/SDRPlusPlus" +distfiles="https://github.com/AlexandreRouma/SDRPlusPlus/archive/refs/tags/${version}.tar.gz" +checksum=251256de6725ceb4f9fb2823c7ad825068ad16cf9b5fb894259b173aae5a69ea