public
Last active

PKGBUILD for gnuradio 3.6.2

  • Download Gist
PKGBUILD
Shell
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 44
# Contibutor: kontakt.zuf@gmail.com
# Maintainer: Moritz Fischer <moritz.fischer@student.kit.edu>
pkgname=gnuradio
pkgver=3.6.2
pkgrel=1
pkgdesc="free software development toolkit that provides the signal processing runtime and processing blocks to implement software radios using readily-available, low-cost external RF hardware and commodity processors"
arch=('i686' 'x86_64')
license=('GPL')
depends=('fftw' 'python2-numpy' 'boost-libs' 'cppunit' 'swig' 'gsl' 'blas' 'guile' 'libuhd')
makedepends=('boost')
optdepends=('wxpython: gr-wxgui' 'python-cheetah: grc' 'qwtplot3d: gr-qtgui' 'sdcc: firmware and all the parts needing USRP' 'doxygen: docs autogenerated documentation' 'pyxml: grc', 'pygtk: grc' 'python2-lxml: grc' 'pyqwt: gr-qtgui')
provides=('gnuradio')
url="http://gnuradio.org"
source=(http://gnuradio.org/releases/gnuradio/gnuradio-${pkgver}.tar.gz)
md5sums=('beaaa4944e0e0a0fd3752f40a00b6114')
 
##_options='--disable-gr-atsc --disable-gr-msdd6000 --disable-gr-usrp2 --enable-gr-uhd --disable-gr-usrp'
 
build() {
cd ${srcdir}/${pkgname}-${pkgver}
msg "Replacing filenames to use python2"
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find $srcdir -name '*.py')
export PYTHON=`which python2`
 
mkdir -p build
cd build
cmake -DPYTHON_EXECUTABLE=$(which python2) -DCMAKE_INSTALL_PREFIX=/usr ../
make $MAKEFLAGS
}
 
check()
{
cd ${srcdir}/${pkgname}-${pkgver}/build
export PYTHON=python2
#make test
}
 
package()
{
msg "Replacing filenames to use python2."
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" $(find ${srcdir} -name '*.py') $(find ${srcdir} -name 'gnuradio-companion' -o -name 'flow_graph.tmpl')
cd ${srcdir}/${pkgname}-${pkgver}/build
make DESTDIR=${pkgdir} install
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.