Skip to content

Instantly share code, notes, and snippets.

@zuf
Created October 6, 2012 15:45
Show Gist options
  • Save zuf/3845269 to your computer and use it in GitHub Desktop.
Save zuf/3845269 to your computer and use it in GitHub Desktop.
PKGBUILD for gnuradio 3.6.2
# 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment