From 63288a2a11f72a91f99b76e7012120cf0837162a Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 24 Nov 2024 12:49:25 +0100 Subject: [PATCH] openwebrx: add package --- lists/to-release | 5 ++++ packages/csdr/PKGBUILD | 47 ++++++++++++++++++++++++++++++++ packages/openwebrx/PKGBUILD | 45 ++++++++++++++++++++++++++++++ packages/owrx_connector/PKGBUILD | 46 +++++++++++++++++++++++++++++++ packages/python-js8py/PKGBUILD | 46 +++++++++++++++++++++++++++++++ packages/python-pycsdr/PKGBUILD | 40 +++++++++++++++++++++++++++ 6 files changed, 229 insertions(+) create mode 100644 packages/csdr/PKGBUILD create mode 100644 packages/openwebrx/PKGBUILD create mode 100644 packages/owrx_connector/PKGBUILD create mode 100644 packages/python-js8py/PKGBUILD create mode 100644 packages/python-pycsdr/PKGBUILD diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..d64778293cc 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,5 @@ +owrx_connector +python-js8py +python-pycsdr +csdr +openwebrx \ No newline at end of file diff --git a/packages/csdr/PKGBUILD b/packages/csdr/PKGBUILD new file mode 100644 index 00000000000..68f936ed1cb --- /dev/null +++ b/packages/csdr/PKGBUILD @@ -0,0 +1,47 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=csdr +pkgver=0.18.2.r68.g1f15b8c +pkgrel=1 +pkgdesc='A simple DSP library and command-line tool for Software Defined Radio.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/jketterl/csdr' +license=('GPL-3.0') +depends=('fftw' 'libsamplerate') +makedepends=('git' 'gcc') +source=("git+https://github.com/jketterl/$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 build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + + make +} + +package() { + cd $pkgname/build + + make DESTDIR="$pkgdir" install + + cd .. + + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md +} + diff --git a/packages/openwebrx/PKGBUILD b/packages/openwebrx/PKGBUILD new file mode 100644 index 00000000000..a64a34b39d8 --- /dev/null +++ b/packages/openwebrx/PKGBUILD @@ -0,0 +1,45 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=openwebrx +pkgver=1.2.2.r387.ga9f47be +pkgrel=1 +pkgdesc='Open source, multi-user SDR receiver software with a web interface.' +arch=('any') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/jketterl/openwebrx' +license=('AGPL-3.0') +depends=('python' 'python-pycsdr' 'csdr' 'airspyhf' 'libsdrplay' 'rtl-sdr' + 'python-js8py' 'owrx_connector' 'netcat') +makedepends=('git' 'python-setuptools') +optdepends=('sox' 'mbelib' 'digiham' 'dsd' 'codec2' 'direwolf') +backup=('etc/openwebrx/openwebrx.conf') +source=("git+https://github.com/jketterl/$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 + + python setup.py build +} + +package() { + cd $pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build + install -Dm 644 openwebrx.conf "$pkgdir/etc/openwebrx/openwebrx.conf" + install -Dm 644 systemd/openwebrx.service "$pkgdir/usr/lib/systemd/system/openwebrx.service" + install -dm 755 "$pkgdir/var/lib/openwebrx" +} + diff --git a/packages/owrx_connector/PKGBUILD b/packages/owrx_connector/PKGBUILD new file mode 100644 index 00000000000..a4fff957bfc --- /dev/null +++ b/packages/owrx_connector/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=owrx_connector +pkgver=0.6.2.r26.g03d5b97 +pkgrel=1 +pkgdesc='Connectors used by OpenWebRX to interface with SDR hardware.' +arch=('x86_64') +url='https://github.com/jketterl/owrx_connector' +license=('GPL-3.0') +depends=('csdr' 'libsamplerate') +makedepends=('git' 'cmake') +optdepends=( + 'rtl-sdr: RTLSDR dongles support.' + 'soapysdr: Allows interfacing with SDRs of many vendors.' +) +source=("git+https://github.com/jketterl/$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_INSTALL_PREFIX=/usr \ + -Wno-dev + + make -C build +} + +package() { + cd $pkgname + + make -C build DESTDIR="$pkgdir" install +} + diff --git a/packages/python-js8py/PKGBUILD b/packages/python-js8py/PKGBUILD new file mode 100644 index 00000000000..a4cc9ce7f9a --- /dev/null +++ b/packages/python-js8py/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-js8py +_pkgname=${pkgname#python-} +pkgver=0.1.2.r6.gf7e394b +pkgrel=1 +pkgdesc='Python module for parsing messages from the "js8" command line decoder.' +arch=('x86_64') +url="https://github.com/jketterl/js8py" +license=('GPL-3.0') +makedepends=('git' 'python-setuptools' 'python-nose') +depends=('python') +provides=('js8py') +source=("git+https://github.com/jketterl/$_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)" + ) +} + +check(){ + cd $_pkgname + + nosetests +} + +build() { + cd $_pkgname + + python setup.py build +} + +package() { + cd $_pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} + diff --git a/packages/python-pycsdr/PKGBUILD b/packages/python-pycsdr/PKGBUILD new file mode 100644 index 00000000000..725f5b8350b --- /dev/null +++ b/packages/python-pycsdr/PKGBUILD @@ -0,0 +1,40 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-pycsdr +_pkgname=${pkgname#python-} +pkgver=0.18.2.r44.g041986e +pkgrel=1 +pkgdesc='Python bindings for the csdr library.' +arch=('x86_64' 'aarch64') +groups=('blackarch' 'blackarch-radio') +url='https://github.com/jketterl/pycsdr' +license=('AGPL-3.0') +depends=('python') +makedepends=('git' 'csdr' 'python-setuptools') +source=("git+https://github.com/jketterl/$_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 + + python setup.py build +} + +package() { + cd $_pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} +