summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislaw Grams2022-04-01 17:52:28 +0200
committerStanislaw Grams2022-04-01 17:52:28 +0200
commitd12e13dab67dcb5a7cbbe056254a04e5d31cf055 (patch)
treeeb7536e20f75344d741a47ecebcfb46c1c1037af
downloadaur-d12e13dab67dcb5a7cbbe056254a04e5d31cf055.tar.gz
add initial support for gr-sdrplay3-git package
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD38
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..813c49b8b6f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = gr-sdrplay3-git
+ pkgdesc = Out-of-tree GNU Radio module for SDRplay RSP devices - SDRplay API V3.X
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/fventuri/gr-sdrplay3
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = cmake
+ makedepends = boost
+ makedepends = swig
+ makedepends = pybind11
+ depends = gnuradio
+ depends = libsdrplay
+ replaces = gr-sdrplay3
+ source = git+https://github.com/fventuri/gr-sdrplay3/#branch=maint-3.9
+ md5sums = SKIP
+
+pkgname = gr-sdrplay3-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f0d7358ac1f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Stanisław Grams <sjg@fmdx.pl>
+
+pkgname=gr-sdrplay3-git
+_pkgname=gr-sdrplay3
+pkgver=1
+pkgrel=1
+pkgdesc=' Out-of-tree GNU Radio module for SDRplay RSP devices - SDRplay API V3.X'
+url='https://github.com/fventuri/gr-sdrplay3'
+arch=('x86_64')
+license=('GPL')
+depends=('gnuradio' 'libsdrplay')
+makedepends=('git' 'cmake' 'boost' 'swig' 'pybind11')
+replaces=('gr-sdrplay3')
+source=("git+https://github.com/fventuri/gr-sdrplay3/#branch=maint-3.9")
+md5sums=('SKIP')
+
+prepare() {
+ cd $_pkgname
+}
+
+build() {
+ cd $_pkgname
+ mkdir -p build && cd build
+ cmake \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DPYTHON_EXECUTABLE="$(which python3)" \
+ -DPYTHON_INCLUDE_DIR="$(echo /usr/include/python3*)" \
+ -DPYTHON_LIBRARY="$(echo /usr/lib/libpython3.*.so)" \
+ -DBoost_NO_BOOST_CMAKE=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr ../
+ make
+}
+
+package() {
+ cd $_pkgname/build
+ make DESTDIR="$pkgdir" install
+}