[arch-commits] Commit in libuhd/repos (2 files)

Kyle Keen kkeen at archlinux.org
Mon Jan 1 00:49:00 UTC 2018


    Date: Monday, January 1, 2018 @ 00:48:59
  Author: kkeen
Revision: 277620

archrelease: copy trunk to community-staging-x86_64

Added:
  libuhd/repos/community-staging-x86_64/
  libuhd/repos/community-staging-x86_64/PKGBUILD
    (from rev 277619, libuhd/trunk/PKGBUILD)

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: libuhd/repos/community-staging-x86_64/PKGBUILD (from rev 277619, libuhd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-01 00:48:59 UTC (rev 277620)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=libuhd
+pkgver=3.10.2.0
+_verstring='003_010_002_000'
+pkgrel=3
+pkgdesc="Universal Software Radio Peripheral (USRP) userspace driver"
+arch=('x86_64')
+url="http://www.ettus.com/kb/category/software-documentation/uhd-manual"
+license=('GPL')
+depends=('boost-libs' 'orc' 'libusb')
+optdepends=('python2: usrp utils')
+makedepends=('cmake' 'boost' 'python2-cheetah' 'python2-mako')
+
+source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/release_${_verstring}.tar.gz")
+md5sums=('f1e1977cd6c146daf800df681cb22944')
+
+prepare() {
+  cd "$srcdir/uhd-release_$_verstring/host"
+  # from commit d9d9d0a8a2e6, remove on 3.10.2.1
+  sed -i 's|socket->native()|socket->native_handle()|' examples/network_relay.cpp
+  sed -i 's|socket->native()|socket->native_handle()|' lib/transport/{tcp_zero_copy,udp_simple,udp_zero_copy}.cpp
+  sed -i 's|recver->native()|recver->native_handle()|' lib/usrp/e300/e300_network.cpp
+}
+
+build() {
+  cd "$srcdir/uhd-release_$_verstring/host"
+  # fix for py2
+  find -name "*.py" -or -name '*.py.in' | xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+
+  mkdir -p build
+  cd build
+  cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ \
+           -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+           -DENABLE_EXAMPLES=OFF \
+           -DENABLE_UTILS=ON \
+           -DENABLE_TESTS=OFF \
+           -DENABLE_E100=ON \
+           -DENABLE_E300=ON
+  make
+}
+
+check() {
+  cd "$srcdir/uhd-release_$_verstring/host/build"
+  make test
+}
+
+package() {
+  cd "$srcdir/uhd-release_$_verstring/host/build"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "../utils/uhd-usrp.rules" "$pkgdir/usr/lib/udev/rules.d/10-uhd-usrp.rules"
+} 
+



More information about the arch-commits mailing list