Date: Sunday, January 15, 2023 @ 16:37:56 Author: dvzrv Revision: 1383634
upgpkg: gnuradio-iqbal 0.38.2.r9.gfbee239-1: Upgrade to current HEAD. The commit used previously pointed at current HEAD, so we introduce a pkgver() function to ensure we actually set the correct pkgver. Remove unneeded dependencies, quotes, cmake options and curly braces. Add soprovides and sodepends. Add debug package. Modified: gnuradio-iqbal/trunk/PKGBUILD ----------+ PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-15 16:12:03 UTC (rev 1383633) +++ PKGBUILD 2023-01-15 16:37:56 UTC (rev 1383634) @@ -1,48 +1,63 @@ # Maintainer: Kyle Keen <[email protected]> # Contributor: Dominik Heidler <[email protected]> +_name=gr-iqbal pkgname=gnuradio-iqbal -_pkgname=gr-iqbal -pkgver=0.38.2 +pkgver=0.38.2.r9.gfbee239 _commit=fbee239a6fb36dd2fb564f6e6a0d393c4bc844db -pkgrel=9 +pkgrel=1 pkgdesc="Gnuradio I/Q balancing" -arch=('x86_64') +arch=(x86_64) url="https://cgit.osmocom.org/gr-iqbal/" -license=('GPL') -depends=('gnuradio' 'fftw' 'libunwind') -replaces=('gr-iqbal') -makedepends=('git' 'cmake' 'boost' 'spdlog') -source=("git+https://gitea.osmocom.org/sdr/gr-iqbal.git#commit=$_commit" - "git+https://gitea.osmocom.org/sdr/libosmo-dsp.git") +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 $_pkgname + cd $_name git submodule init git submodule set-url libosmo-dsp "$srcdir/libosmo-dsp" git -c protocol.file.allow=always submodule update - - sed -i 's/this, _1/this, boost::placeholders::_1/' lib/fix_cc.cc - sed -i 's/\t/ /' python/__init__.py } build() { - local _pyver=$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))') - cmake -B build -S $_pkgname \ - -Wno-dev \ - -DCMAKE_BUILD_TYPE=Release \ - -DPYTHON_EXECUTABLE=/usr/bin/python3 \ - -DPYTHON_INCLUDE_DIR="/usr/include/python${_pyver}" \ - -DPYTHON_LIBRARY="/usr/lib/libpython${_pyver}.so" \ - -DGR_PYTHON_DIR="/usr/lib/python${_pyver}/site-packages/" \ - -DCMAKE_LIBRARY_PATH=/usr/lib \ - -DCMAKE_INSTALL_PREFIX=/usr + 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 }
