summaryrefslogtreecommitdiff
path: root/community/gnuradio
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/gnuradio
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/gnuradio')
-rw-r--r--community/gnuradio/PKGBUILD35
-rw-r--r--community/gnuradio/gnuradio.install49
2 files changed, 69 insertions, 15 deletions
diff --git a/community/gnuradio/PKGBUILD b/community/gnuradio/PKGBUILD
index 3200dee0a..32dcfb539 100644
--- a/community/gnuradio/PKGBUILD
+++ b/community/gnuradio/PKGBUILD
@@ -1,10 +1,11 @@
-# $Id: PKGBUILD 100355 2013-11-02 16:17:09Z kkeen $
+# $Id: PKGBUILD 102721 2013-12-17 19:43:24Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dominik Heidler <dheidler@gmail.com>
+# Contributor: Jonatan Sastre <jsastreh [ at ] hotmail.com>
pkgname=gnuradio
-pkgver=3.7.1
-pkgrel=8
-pkgdesc="General purpose DSP and SDR toolkit. Supports usrp and fcd."
+pkgver=3.7.2.1
+pkgrel=1
+pkgdesc="General purpose DSP and SDR toolkit. With drivers for usrp and fcd."
arch=('i686' 'x86_64')
url="http://gnuradio.org"
license=('GPL')
@@ -14,27 +15,41 @@ optdepends=('python2-cheetah: gnuradio-companion'
'python2-lxml: gnuradio-companion'
'pygtk: gnuradio-companion'
'wxpython: gr-wxgui'
- 'qwtplot3d: gr-qtgui'
- 'pyqwt: gr-qtgui'
- 'doxygen: autogenerated documentation'
- 'pkgconfig: ?')
+ 'pkgconfig: libuhd')
conflicts=('gnuradio-git')
install=gnuradio.install
+# gr-qtgui todo
+# talk to ronald about adding qwt5 to qwt package
+# bring pyqwt in from AUR
+# update optdepends
+# 'qwtplot3d: gr-qtgui'
+# 'pyqwt: gr-qtgui'
+# update makedepends
+# 'qwtplot3d'
+
# todo
# add gr-osmosdr-git to optdepends
# split the gui components?
# build doxygen docs?
# icons
+# comedilib: gr-comedi
+# zeroc-ice: gr-ctrlport
+# doxygen: C++ autogenerated documentation
+# python2-sphinx: Python autogenerated documentation
+
source=("http://gnuradio.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
"21-fcd.rules")
-md5sums=('6c5e67da6ed8724dd900d8e343b64be4'
+md5sums=('f2ea23a30cb02802870fe8cb9bf272c9'
'465e12c454c6a22ebec9849181af7bdc')
build() {
export PYTHON=python2
cd "$srcdir/$pkgname-$pkgver"
+ sed -i -e "s|GR_PKG_LIBEXEC_DIR|GR_RUNTIME_DIR|" grc/freedesktop/CMakeLists.txt
+ sed -i -e "s|/qwt$|/qwt5|" -e "s| qwt | qwt5 |" cmake/Modules/FindQwt.cmake
+ sed -i -e "s| sphinx-build$| sphinx-build2|" cmake/Modules/FindSphinx.cmake
msg "Starting build."
mkdir -p build
cd build
@@ -43,7 +58,7 @@ build() {
-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
-DENABLE_GRC=ON \
- -DCMAKE_INSTALL_PREFIX=/usr ../
+ -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ../
make
}
diff --git a/community/gnuradio/gnuradio.install b/community/gnuradio/gnuradio.install
index e111ef946..1166dd05e 100644
--- a/community/gnuradio/gnuradio.install
+++ b/community/gnuradio/gnuradio.install
@@ -1,11 +1,50 @@
-post_install() {
+
+# clean up for anyone silly enough to run this as root
+
+# it would be great if pkgname and not just pkgver was passed in the arg list
+
+_pkg='gnuradio'
+_cpython='cpython-33'
+
+post_upgrade() {
+ while read _f; do
+ if [[ "${_f:(-3)}" != ".py" ]]; then
+ continue
+ fi
+ if [[ ! -f "$_f" ]]; then
+ continue
+ fi
+ if [[ -e "${_f}c" ]]; then
+ rm -f "${_f}c"
+ fi
+ if [[ -e "${_f}o" ]]; then
+ rm -f "${_f}o"
+ fi
+ _thisdir="$(dirname "$_f")/__pycache__"
+ if [[ ! -d "$_thisdir" ]]; then
+ continue
+ fi
+ _thisfile="$(basename "$_f")"
+ _thisfile="${_thisfile/%.py/.${_cpython}.py}"
+ if [[ -e "${_thisdir}/${_thisfile}c" ]]; then
+ rm -f "${_thisdir}/${_thisfile}c"
+ fi
+ if [[ -e "${_thisdir}/${_thisfile}o" ]]; then
+ rm -f "${_thisdir}/${_thisfile}o"
+ fi
+ # no good way to test for empty dir
+ # would be 25% faster if there were
+ rmdir --ignore-fail-on-non-empty "$_thisdir" &> /dev/null
+ done <<< "$(pacman -Qql $_pkg | grep '\.py$')"
+
update-desktop-database -q
}
-post_upgrade() {
- post_install
+post_install() {
+ post_upgrade $1
}
-post_remove() {
- post_install
+pre_remove() {
+ post_upgrade $1
}
+