[arch-commits] Commit in gnuradio/repos (8 files)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sat Nov 30 13:08:32 UTC 2013


    Date: Saturday, November 30, 2013 @ 14:08:32
  Author: bpiotrowski
Revision: 101700

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  gnuradio/repos/community-staging-i686/
  gnuradio/repos/community-staging-i686/21-fcd.rules
    (from rev 101699, gnuradio/trunk/21-fcd.rules)
  gnuradio/repos/community-staging-i686/PKGBUILD
    (from rev 101699, gnuradio/trunk/PKGBUILD)
  gnuradio/repos/community-staging-i686/gnuradio.install
    (from rev 101699, gnuradio/trunk/gnuradio.install)
  gnuradio/repos/community-staging-x86_64/
  gnuradio/repos/community-staging-x86_64/21-fcd.rules
    (from rev 101699, gnuradio/trunk/21-fcd.rules)
  gnuradio/repos/community-staging-x86_64/PKGBUILD
    (from rev 101699, gnuradio/trunk/PKGBUILD)
  gnuradio/repos/community-staging-x86_64/gnuradio.install
    (from rev 101699, gnuradio/trunk/gnuradio.install)

-------------------------------------------+
 community-staging-i686/21-fcd.rules       |    9 +++
 community-staging-i686/PKGBUILD           |   81 ++++++++++++++++++++++++++++
 community-staging-i686/gnuradio.install   |   11 +++
 community-staging-x86_64/21-fcd.rules     |    9 +++
 community-staging-x86_64/PKGBUILD         |   81 ++++++++++++++++++++++++++++
 community-staging-x86_64/gnuradio.install |   11 +++
 6 files changed, 202 insertions(+)

Copied: gnuradio/repos/community-staging-i686/21-fcd.rules (from rev 101699, gnuradio/trunk/21-fcd.rules)
===================================================================
--- community-staging-i686/21-fcd.rules	                        (rev 0)
+++ community-staging-i686/21-fcd.rules	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,9 @@
+# Udev rules for the Funcube Dongle Pro (0xfb56) and Pro+ (0xfb31)
+
+# HIDAPI/libusb:
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb56" MODE:="0666"
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb31" MODE:="0666"
+
+# HIDAPI/hidraw:
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb56", MODE="0666"
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb31", MODE="0666"

Copied: gnuradio/repos/community-staging-i686/PKGBUILD (from rev 101699, gnuradio/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+pkgname=gnuradio
+pkgver=3.7.2
+pkgrel=2
+pkgdesc="General purpose DSP and SDR toolkit.  With drivers for usrp and fcd."
+arch=('i686' 'x86_64')
+url="http://gnuradio.org"
+license=('GPL')
+depends=('fftw' 'python2-numpy' 'cppunit' 'swig' 'gsl' 'blas' 'guile' 'boost-libs>=1.53' 'libusbx' 'portaudio' 'libuhd')
+makedepends=('boost' 'cmake' 'python2-lxml' 'pygtk' 'wxpython' 'python2-cheetah')
+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: ?')
+conflicts=('gnuradio-git')
+install=gnuradio.install
+
+# todo
+# add gr-osmosdr-git to optdepends
+# split the gui components?
+# build doxygen docs?
+# icons
+
+source=("http://gnuradio.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+        "21-fcd.rules")
+md5sums=('9a9da8458fd0c1b452487524ed29f3fd'
+         '465e12c454c6a22ebec9849181af7bdc')
+
+build() {
+	export PYTHON=python2
+	cd "$srcdir/$pkgname-$pkgver"
+	msg "Starting build."
+	mkdir -p build
+	cd build
+	cmake \
+		-DPYTHON_EXECUTABLE=$(which python2) \
+		-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
+		-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
+		-DENABLE_GRC=ON \
+		-DCMAKE_INSTALL_PREFIX=/usr ../
+	make
+}
+
+check() {
+	cd "$srcdir/$pkgname-$pkgver/build"
+	export PYTHON=python2
+	#make test
+}
+
+package() {
+	cd "$srcdir"
+	install -Dm644 21-fcd.rules "$pkgdir/usr/lib/udev/rules.d/21-fcd.rules"
+	cd "$srcdir/$pkgname-$pkgver/grc/freedesktop"
+        install -Dm644 gnuradio-grc.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+	cd "$srcdir/$pkgname-$pkgver/build"
+	make DESTDIR="$pkgdir" install
+	msg "Replacing filenames to use python2."
+	sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+		$(find "$pkgdir" -name '*.py') \
+		$(find "$pkgdir" -name 'gnuradio-companion' -o -name 'flow_graph.tmpl')
+	find "$pkgdir/" -name '*.pyc' -delete
+	find "$pkgdir/" -name '*.pyo' -delete
+}
+
+# options for armv6:
+# -Dhave_mfpu_neon=0 \
+# -DCMAKE_CXX_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
+# -DCMAKE_C_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
+
+# options for armv7:
+# -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
+# -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
+# line 341 add /usr/lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabi
+
+

Copied: gnuradio/repos/community-staging-i686/gnuradio.install (from rev 101699, gnuradio/trunk/gnuradio.install)
===================================================================
--- community-staging-i686/gnuradio.install	                        (rev 0)
+++ community-staging-i686/gnuradio.install	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}

Copied: gnuradio/repos/community-staging-x86_64/21-fcd.rules (from rev 101699, gnuradio/trunk/21-fcd.rules)
===================================================================
--- community-staging-x86_64/21-fcd.rules	                        (rev 0)
+++ community-staging-x86_64/21-fcd.rules	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,9 @@
+# Udev rules for the Funcube Dongle Pro (0xfb56) and Pro+ (0xfb31)
+
+# HIDAPI/libusb:
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb56" MODE:="0666"
+SUBSYSTEMS=="usb" ATTRS{idVendor}=="04d8" ATTRS{idProduct}=="fb31" MODE:="0666"
+
+# HIDAPI/hidraw:
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb56", MODE="0666"
+KERNEL=="hidraw*", ATTRS{busnum}=="1", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb31", MODE="0666"

Copied: gnuradio/repos/community-staging-x86_64/PKGBUILD (from rev 101699, gnuradio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+pkgname=gnuradio
+pkgver=3.7.2
+pkgrel=2
+pkgdesc="General purpose DSP and SDR toolkit.  With drivers for usrp and fcd."
+arch=('i686' 'x86_64')
+url="http://gnuradio.org"
+license=('GPL')
+depends=('fftw' 'python2-numpy' 'cppunit' 'swig' 'gsl' 'blas' 'guile' 'boost-libs>=1.53' 'libusbx' 'portaudio' 'libuhd')
+makedepends=('boost' 'cmake' 'python2-lxml' 'pygtk' 'wxpython' 'python2-cheetah')
+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: ?')
+conflicts=('gnuradio-git')
+install=gnuradio.install
+
+# todo
+# add gr-osmosdr-git to optdepends
+# split the gui components?
+# build doxygen docs?
+# icons
+
+source=("http://gnuradio.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+        "21-fcd.rules")
+md5sums=('9a9da8458fd0c1b452487524ed29f3fd'
+         '465e12c454c6a22ebec9849181af7bdc')
+
+build() {
+	export PYTHON=python2
+	cd "$srcdir/$pkgname-$pkgver"
+	msg "Starting build."
+	mkdir -p build
+	cd build
+	cmake \
+		-DPYTHON_EXECUTABLE=$(which python2) \
+		-DPYTHON_INCLUDE_DIR=$(echo /usr/include/python2*) \
+		-DPYTHON_LIBRARY=$(echo /usr/lib/libpython2.*.so) \
+		-DENABLE_GRC=ON \
+		-DCMAKE_INSTALL_PREFIX=/usr ../
+	make
+}
+
+check() {
+	cd "$srcdir/$pkgname-$pkgver/build"
+	export PYTHON=python2
+	#make test
+}
+
+package() {
+	cd "$srcdir"
+	install -Dm644 21-fcd.rules "$pkgdir/usr/lib/udev/rules.d/21-fcd.rules"
+	cd "$srcdir/$pkgname-$pkgver/grc/freedesktop"
+        install -Dm644 gnuradio-grc.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+	cd "$srcdir/$pkgname-$pkgver/build"
+	make DESTDIR="$pkgdir" install
+	msg "Replacing filenames to use python2."
+	sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+		$(find "$pkgdir" -name '*.py') \
+		$(find "$pkgdir" -name 'gnuradio-companion' -o -name 'flow_graph.tmpl')
+	find "$pkgdir/" -name '*.pyc' -delete
+	find "$pkgdir/" -name '*.pyo' -delete
+}
+
+# options for armv6:
+# -Dhave_mfpu_neon=0 \
+# -DCMAKE_CXX_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
+# -DCMAKE_C_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
+
+# options for armv7:
+# -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
+# -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard"
+# line 341 add /usr/lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabi
+
+

Copied: gnuradio/repos/community-staging-x86_64/gnuradio.install (from rev 101699, gnuradio/trunk/gnuradio.install)
===================================================================
--- community-staging-x86_64/gnuradio.install	                        (rev 0)
+++ community-staging-x86_64/gnuradio.install	2013-11-30 13:08:32 UTC (rev 101700)
@@ -0,0 +1,11 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}




More information about the arch-commits mailing list