Date: Sunday, January 15, 2023 @ 16:38:26
Author: dvzrv
Revision: 1383635
archrelease: copy trunk to community-testing-x86_64
Added:
gnuradio-iqbal/repos/community-testing-x86_64/
gnuradio-iqbal/repos/community-testing-x86_64/PKGBUILD
(from rev 1383634, gnuradio-iqbal/trunk/PKGBUILD)
----------+
PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
Copied: gnuradio-iqbal/repos/community-testing-x86_64/PKGBUILD (from rev
1383634, gnuradio-iqbal/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-01-15 16:38:26 UTC (rev 1383635)
@@ -0,0 +1,63 @@
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: Dominik Heidler <[email protected]>
+
+_name=gr-iqbal
+pkgname=gnuradio-iqbal
+pkgver=0.38.2.r9.gfbee239
+_commit=fbee239a6fb36dd2fb564f6e6a0d393c4bc844db
+pkgrel=1
+pkgdesc="Gnuradio I/Q balancing"
+arch=(x86_64)
+url="https://cgit.osmocom.org/gr-iqbal/"
+license=(GPL3)
+depends=(
+ gcc-libs
+ glibc
+ python
+ # python-pygccxml # TODO: package
+)
+provides=(libgnuradio-iqbalance.so)
+replaces=(gr-iqbal)
+makedepends=(boost cmake fftw gnuradio git gmp libvolk)
+source=(
+ git+https://gitea.osmocom.org/sdr/gr-iqbal.git#commit=$_commit
+ git+https://gitea.osmocom.org/sdr/libosmo-dsp.git # TODO: package this
instead
+)
+sha256sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd $_name
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
+}
+
+prepare() {
+ cd $_name
+
+ git submodule init
+ git submodule set-url libosmo-dsp "$srcdir/libosmo-dsp"
+ git -c protocol.file.allow=always submodule update
+}
+
+build() {
+ local cmake_options=(
+ -B build
+ -D CMAKE_BUILD_TYPE=None
+ -D CMAKE_INSTALL_PREFIX=/usr
+ -D CMAKE_LIBRARY_PATH=/usr/lib
+ -S $_name
+ -W no-dev
+ )
+
+ cmake "${cmake_options[@]}"
+ cmake --build build
+}
+
+package() {
+ depends+=(
+ fftw libfftw3f.so
+ gnuradio libgnuradio-pmt.so libgnuradio-runtime.so
+ )
+
+ DESTDIR="$pkgdir" cmake --install build
+}