blob: d872117e80737ac4253598ad8d4cbe495ae42fb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $Id: PKGBUILD 115766 2014-07-16 04:59:57Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dominik Heidler <dheidler@gmail.com>
pkgname=gnuradio-iqbal
_pkgname=gr-iqbal
pkgver=0.37.1
pkgrel=4
pkgdesc="Gnuradio I/Q balancing"
arch=('i686' 'x86_64')
url="http://cgit.osmocom.org/gr-iqbal/"
license=('GPL')
depends=('gnuradio' 'fftw')
replaces=('gr-iqbal')
makedepends=('git' 'cmake' 'boost' 'swig')
source=("git://git.osmocom.org/gr-iqbal/#tag=v$pkgver"
float-complex.patch)
md5sums=('SKIP'
'6417f4c064b44e8875fbb783c3a2c308')
build() {
cd "$srcdir/$_pkgname"
git submodule init
git submodule update
# patches are already in git, only applies to 0.37.1
patch -p1 -i "$srcdir/float-complex.patch"
sed -i 's/LIBOSMODSP_LIBRARIES ""/LIBOSMODSP_LIBRARIES ${FFTW3F_LIBRARIES}/' CMakeLists.txt
mkdir build
cd build
cmake \
-Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=$(which python2) \
-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
-DCMAKE_LIBRARY_PATH=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr ../
make
}
package() {
cd "$srcdir/$_pkgname/build/"
make DESTDIR="${pkgdir}" install
}
|