summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD22
2 files changed, 19 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7969dade13eb..900df1799d15 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Wed Aug 23 20:05:33 UTC 2017
+# Sun Dec 20 22:48:31 UTC 2020
pkgbase = gnuradio-iio-git
pkgdesc = IIO blocks for GNU Radio
- pkgver = 20170705
+ pkgver = 20201109
pkgrel = 1
url = https://github.com/analogdevicesinc/gr-iio
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 35e57edfae8b..c60582d2d435 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Kyle Keen <keenerd@gmail.com?>
pkgname=gnuradio-iio-git
_gitname=gr-iio
-pkgver=20170705
+pkgver=20201109
pkgrel=1
pkgdesc="IIO blocks for GNU Radio"
url="https://github.com/analogdevicesinc/gr-iio"
@@ -19,16 +19,28 @@ pkgver() {
git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}
+prepare() {
+ cd "$_gitname"
+ sed -i 's|gnuradio/analog/sig_source_f.h|gnuradio/analog/sig_source.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/blocks/add_ff.h|gnuradio/blocks/add_blk.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/blocks/divide_ff.h|gnuradio/blocks/divide.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/blocks/multiply_const_ff.h|gnuradio/blocks/multiply_const.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/blocks/multiply_ff.h|gnuradio/blocks/multiply.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/blocks/sub_ff.h|gnuradio/blocks/sub.h|' lib/iio_math_impl.cc
+ sed -i 's|gnuradio/analog/sig_source_f.h|gnuradio/analog/sig_source.h|' lib/iio_math_gen_impl.cc
+ 2to3 -w ./python/iio/{__init__,attr_updater}.py
+}
build() {
cd "$_gitname"
mkdir -p build
cd build
- export PYTHON=python2
+ export PYTHON=python3
cmake \
- -DPYTHON_EXECUTABLE=$(which python2) \
- -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
- -DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
+ -DPYTHON_EXECUTABLE=$(which python3) \
+ -DPYTHON_INCLUDE_DIR=$(echo /usr/include/python3*) \
+ -DPYTHON_LIBRARY=$(echo /usr/lib/libpython3.*.so) \
+ -DGNURADIO_RUNTIME_INCLUDE_DIRS=/usr/include \
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../
make
}