diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..10dc6204e80 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,12 @@ +aptdec +libdab +liblms7002m-xtrx +libmirisdr4 +libperseus-sdr +libusb3380 +libxtrx +libxtrxdsp +libxtrxll +qt5-gamepad +sgp4 +sdrangel \ No newline at end of file diff --git a/packages/aptdec/PKGBUILD b/packages/aptdec/PKGBUILD new file mode 100644 index 00000000000..9c45e951876 --- /dev/null +++ b/packages/aptdec/PKGBUILD @@ -0,0 +1,52 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=aptdec +pkgver=v1.8.0.r2.g7db2030 +pkgrel=1 +pkgdesc='NOAA APT satellite imagery decoder.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/Xerbo/aptdec' +license=('GPL-2.0-or-later') +depends=('libsndfile' 'libpng') +makedepends=('git' 'cmake') +source=("git+https://github.com/Xerbo/$pkgname.git" + "git+https://github.com/cofyc/argparse.git") +sha512sums=('SKIP' + 'SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +prepare() { + cd $pkgname + + git submodule init + git config submodule.src/argparse.url "$srcdir/argparse" + git -c protocol.file.allow=always submodule update +} + +build() { + cd $pkgname + + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX='/usr' + make -C build +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/libdab/PKGBUILD b/packages/libdab/PKGBUILD new file mode 100644 index 00000000000..5538a0d1345 --- /dev/null +++ b/packages/libdab/PKGBUILD @@ -0,0 +1,44 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libdab +_pkgname=dab-cmdline +pkgver=dab.cmdline.0.8.r310.g982a804 +pkgrel=1 +pkgdesc='DAB decoding library.' +arch=('x86_64' 'aarch64') +url='https://github.com/JvanKatwijk/dab-cmdline' +license=('GPL-2.0-or-later') +depends=('fftw' 'faad2') +makedepends=('cmake' 'git') +provides=('libdab_lib.so') +source=("git+https://github.com/JvanKatwijk/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $_pkgname + + cmake -B build -S "library" \ + -Wno-dev \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX=/usr + make -C build +} + +package() { + cd $_pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/liblms7002m-xtrx/PKGBUILD b/packages/liblms7002m-xtrx/PKGBUILD new file mode 100644 index 00000000000..e6ed6b30481 --- /dev/null +++ b/packages/liblms7002m-xtrx/PKGBUILD @@ -0,0 +1,47 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=liblms7002m-xtrx +_pkgname=liblms7002m +pkgver=10.b07761b +pkgrel=1 +pkgdesc='Compact LMS7002M library suitable for resource-limited MCUs.' +arch=('x86_64' 'aarch64') +url='https://github.com/xtrx-sdr/liblms7002m' +license=('LGPL-2.1-or-later') +depends=() +makedepends=('git' 'cmake' 'python-cheetah3') +source=("git+https://github.com/xtrx-sdr/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $_pkgname + + mkdir -p build + cd build + + cmake .. \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make +} + +package() { + cd $_pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/libmirisdr4/PKGBUILD b/packages/libmirisdr4/PKGBUILD new file mode 100644 index 00000000000..8914d76cd72 --- /dev/null +++ b/packages/libmirisdr4/PKGBUILD @@ -0,0 +1,45 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libmirisdr4 +_pkgname=libmirisdr-4 +pkgver=v2.0.0.r0.gfd0452e +pkgrel=1 +pkgdesc='Support of Mirics MSi001 + MSi2500 SDR devices (yet another flavour of libmirisdr).' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/f4exb/libmirisdr-4' +license=('GPL-2.0-or-later') +depends=('libusb') +makedepends=('git' 'cmake') +source=("git+https://github.com/f4exb/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $_pkgname + + cmake . \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd $_pkgname + + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir/etc/udev/rules.d/" + cp mirisdr.rules "$pkgdir/etc/udev/rules.d/99-mirisdr.rules" +} + diff --git a/packages/libperseus-sdr/0001-makefile-install-udev-rules-to-correct-location.patch b/packages/libperseus-sdr/0001-makefile-install-udev-rules-to-correct-location.patch new file mode 100644 index 00000000000..48802c2983e --- /dev/null +++ b/packages/libperseus-sdr/0001-makefile-install-udev-rules-to-correct-location.patch @@ -0,0 +1,31 @@ +From 308890fb664cfbf10a858035894a4f73b7cfa47e Mon Sep 17 00:00:00 2001 +From: Xiretza +Date: Sat, 24 Apr 2021 23:30:16 +0200 +Subject: [PATCH] makefile: install udev rules to correct location + +--- + Makefile.am | 8 +------- + 1 file changed, 1 insertion(+), 7 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index d5ebce1..a41acdf 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -69,14 +69,8 @@ dist_pkgdata_DATA = $(udev_DATA) + # sudo udevadm control --reload-rules + # + udevrule_DATA = $(top_srcdir)/95-perseus.rules +-udevruledir = $(bindir) ++udevruledir = $(libdir)/udev/rules.d/ + EXTRA_DIST = $(top_srcdir)/95-perseus.rules README.Windows $(top_srcdir)/build-aux/git-version-gen fpga_data.c +- +-install-data-hook: +- -cp $(bindir)/95-perseus.rules /etc/udev/rules.d/ ; groupadd perseususb ; echo $(INST_USER) ;usermod -a -G perseususb $(INST_USER) ; udevadm control --reload-rules +- +-uninstall-hook: +- -rm /etc/udev/rules.d/95-perseus.rules ; groupdel perseususb ; udevadm control --reload-rules + endif + + # +-- +2.31.1 diff --git a/packages/libperseus-sdr/PKGBUILD b/packages/libperseus-sdr/PKGBUILD new file mode 100644 index 00000000000..35fff24ed98 --- /dev/null +++ b/packages/libperseus-sdr/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libperseus-sdr +pkgver=v0.8.2.r3.gc2c95da +pkgrel=1 +pkgdesc='Perseus Software Defined Radio Control Library for Linux.' +arch=('x86_64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/Microtelecom/libperseus-sdr' +license=('LGPL-3.0-or-later') +depends=('libusb') +makedepends=('git' 'vim') +provides=('libperseus-sdr.so') +source=("git+https://github.com/Microtelecom/$pkgname.git" + "0001-makefile-install-udev-rules-to-correct-location.patch") +sha512sums=('SKIP' + '2abc9cc1b291b4d32e37ef252d1e0dc0a970b0788cdecd2c7e523f5368c611532eb9329c5cf4679a6437293ecac682ad5abfe44d6aaa6e5a02806aa1ff15d778') +install="$pkgname.install" + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +prepare() { + cd $pkgname + + patch -p1 < "../0001-makefile-install-udev-rules-to-correct-location.patch" +} + +build() { + cd $pkgname + + autoreconf -i + ./configure --prefix=/usr + make +} + +package() { + cd $pkgname + + make DESTDIR="$pkgdir" install +} + diff --git a/packages/libperseus-sdr/libperseus-sdr.install b/packages/libperseus-sdr/libperseus-sdr.install new file mode 100644 index 00000000000..05100dd4c8a --- /dev/null +++ b/packages/libperseus-sdr/libperseus-sdr.install @@ -0,0 +1,7 @@ +post_install() { + libtool --finish /usr/lib +} + +post_upgrade() { + post_install "$@" +} \ No newline at end of file diff --git a/packages/libusb3380/PKGBUILD b/packages/libusb3380/PKGBUILD new file mode 100644 index 00000000000..6b3dcabe48a --- /dev/null +++ b/packages/libusb3380/PKGBUILD @@ -0,0 +1,45 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libusb3380 +pkgver=16.92d102a +pkgrel=1 +pkgdesc='USB3380 abstraction layer for libusb.' +arch=('x86_64' 'aarch64') +url='https://github.com/xtrx-sdr/libusb3380' +license=('Apache-2.0') +makedepends=('git' 'cmake') +source=("git+https://github.com/xtrx-sdr/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + mkdir -p build + cd build + + cmake .. \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/libxtrx/PKGBUILD b/packages/libxtrx/PKGBUILD new file mode 100644 index 00000000000..9abd4d98e13 --- /dev/null +++ b/packages/libxtrx/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libxtrx +pkgver=78.d9599fb +pkgrel=1 +pkgdesc='High level API for the xtrx SDR.' +arch=('x86_64' 'aarch64') +url='https://github.com/xtrx-sdr/libxtrx' +license=('Apache-2.0') +depends=('liblms7002m-xtrx' 'libxtrxdsp' 'libxtrxll' 'qcustomplot' 'soapysdr') +makedepends=('git' 'cmake') +source=("git+https://github.com/xtrx-sdr/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + mkdir -p build + cd build + + cmake .. \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Debug + + make +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/libxtrxdsp/PKGBUILD b/packages/libxtrxdsp/PKGBUILD new file mode 100644 index 00000000000..5d52bda7576 --- /dev/null +++ b/packages/libxtrxdsp/PKGBUILD @@ -0,0 +1,50 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libxtrxdsp +pkgver=12.271f5e6 +pkgrel=1 +pkgdesc='DSP specific function for SDR in general and XTRX in specific.' +arch=('x86_64' 'aarch64' 'i686') +url='https://github.com/xtrx-sdr/libxtrxdsp' +license=('Apache-2.0') +makedepends=('git' 'cmake') +source=("git+https://github.com/xtrx-sdr/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + mkdir -p build + cd build + + if [ "$CARCH" = 'i686' ]; then + FORCE_ARCH="-DFORCE_ARCH=x86" + fi + + cmake .. \ + ${FORCE_ARCH} \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/libxtrxll/PKGBUILD b/packages/libxtrxll/PKGBUILD new file mode 100644 index 00000000000..34076f5e999 --- /dev/null +++ b/packages/libxtrxll/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=libxtrxll +pkgver=43.78fb365 +pkgrel=1 +pkgdesc='Low level XTRX hardware abstraction library.' +arch=('x86_64' 'aarch64') +url='https://github.com/xtrx-sdr/libxtrxll' +license=('Apache-2.0') +depends=('libusb3380') +makedepends=('git' 'cmake') +source=("git+https://github.com/xtrx-sdr/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + mkdir -p build + cd build + + cmake .. \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/qt5-gamepad/PKGBUILD b/packages/qt5-gamepad/PKGBUILD new file mode 100644 index 00000000000..a0cc2d03a10 --- /dev/null +++ b/packages/qt5-gamepad/PKGBUILD @@ -0,0 +1,52 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=qt5-gamepad +_pkgname=${pkgname/5-/} +pkgver=v5.15.16.lts.lgpl.r0.g4a0bc80 +pkgrel=1 +pkgdesc='Adds support for getting events from gamepad devices.' +arch=('x86_64' 'aarch64') +groups=('qt5') +url='https://www.qt.io' +license=('GPL-3.0-or-later' 'LGPL-3.0-or-later' 'FDL' 'custom') +depends=('qt5-base' 'sdl2') +makedepends=('git' 'qt5-declarative') +optdepends=('qt5-declarative: QML bindings') +source=("git+https://invent.kde.org/qt/qt/$_pkgname.git#branch=5.15") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +prepare() { + mkdir -p build +} + +build() { + cd build + + qmake ../$_pkgname + make +} + +package() { + cd build + make INSTALL_ROOT="$pkgdir" install + + # Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$pkgdir/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + install -d "$pkgdir/usr/share/licenses" + ln -s /usr/share/licenses/qt5-base "$pkgdir/usr/share/licenses/$pkgname" +} + diff --git a/packages/sdrangel/PKGBUILD b/packages/sdrangel/PKGBUILD new file mode 100644 index 00000000000..eddd514d075 --- /dev/null +++ b/packages/sdrangel/PKGBUILD @@ -0,0 +1,82 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +# Initial PKGBUILD from AUR. +# Old Maintainer: nemanjan00 +# Old Contributor: Filipe LaĆ­ns (FFY00) +# Old Contributor: Michal Krenek (Mikos) + +pkgname=sdrangel +pkgver=v7.22.4.r22.gd0cae88 +pkgrel=1 +pkgdesc='Qt5/OpenGL SDR and signal analyzer frontend.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/f4exb/sdrangel' +license=('GPL-3.0-or-later') +depends=('log4cpp' 'opencv' 'fftw' 'cm256cc' 'dsdcc' 'pulse-native-provider' + 'lz4' 'nanomsg' 'qt5-base' 'qt5-multimedia' 'qt5-websockets' + 'qt5-tools' 'qt5-charts' 'qt5-quickcontrols' 'qt5-quickcontrols2' + 'qt5-serialport' 'qt5-declarative' 'qt5-location' 'qt5-speech' + 'qt5-webengine' 'qt5-gamepad' 'qt5-svg' 'qt5-graphicaleffects') +# libsigmf requires the vendored version at https://github.com/f4exb/libsigmf/tree/new-namespaces, which isn't packaged yet +makedepends=('git' 'cmake' 'boost' 'doxygen' 'graphviz' 'ffmpeg' 'libdab' + 'zlib' 'faad2' 'sgp4' 'aptdec' 'codec2' 'libmirisdr4' 'rtl-sdr' + 'hackrf' 'libiio' 'limesuite' 'bladerf' 'libperseus-sdr' 'airspy' + 'airspyhf' 'libxtrx' 'libuhd') +optdepends=('ffmpeg: DATV demodulator' + 'libdab: DAB demodulator' + 'zlib: DAB demodulator' + 'faad2: DAB demodulator' + 'sgp4: satellite tracker' + 'aptdec: APT (weather satellite) decoder' + 'codec2: FreeDV modulator/demodulator' + 'libmirisdr4<2.0.0: SDRPlay support' + 'rtl-sdr: RTLSDR support' + 'hackrf: HackRF support' + 'libiio: PlutoSDR support' + 'limesuite: LimeSDR support' + 'bladerf: BladeRF support' + 'libperseus-sdr: Perseus SDR support' + 'airspy: Airspy support' + 'airspyhf: Airspy HF+ support' + 'libxtrx: XTRX SDR support' + 'libuhd: USRP support') +source=("git+https://github.com/f4exb/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + # https://bugs.gentoo.org/704322 + export CXXFLAGS="$CXXFLAGS -fpermissive" + cmake -B build \ + -Wno-dev \ + -DARCH_OPT="" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIBDSDCC_INCLUDE_DIR=/usr/include/dsdcc \ + -DCM256CC_INCLUDE_DIR=/usr/include/cm256cc \ + -DENABLE_CHANNELRX_DEMODDATV=OFF \ + -DENABLE_CHANNELTX_MODDATV=OFF + + make -C build +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/sgp4/PKGBUILD b/packages/sgp4/PKGBUILD new file mode 100644 index 00000000000..719e88e3a49 --- /dev/null +++ b/packages/sgp4/PKGBUILD @@ -0,0 +1,41 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=sgp4 +pkgver=v1.0.r6.g6a448b4 +pkgrel=1 +pkgdesc='Simplified perturbations models.' +arch=('x86_64' 'aarch64') +url='https://github.com/dnwrnr/sgp4' +license=('Apache-2.0') +depends=('gcc-libs') +makedepends=('cmake' 'git') +source=("git+https://github.com/dnwrnr/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + cmake -B build \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX=/usr + make -C build +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} +