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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 2 21:40:30 UTC 2018


    Date: Saturday, June 2, 2018 @ 21:40:30
  Author: foutrelis
Revision: 338484

archrelease: copy trunk to community-staging-x86_64

Added:
  libuhd/repos/community-staging-x86_64/
  libuhd/repos/community-staging-x86_64/PKGBUILD
    (from rev 338483, libuhd/trunk/PKGBUILD)
  libuhd/repos/community-staging-x86_64/boost-1.67.patch
    (from rev 338483, libuhd/trunk/boost-1.67.patch)

------------------+
 PKGBUILD         |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 boost-1.67.patch |   12 ++++++++++++
 2 files changed, 65 insertions(+)

Copied: libuhd/repos/community-staging-x86_64/PKGBUILD (from rev 338483, libuhd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-02 21:40:30 UTC (rev 338484)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=libuhd
+pkgver=3.11.1.0
+pkgrel=1
+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/v$pkgver.tar.gz"
+        'boost-1.67.patch')
+md5sums=('fb3c6972af55130f34ec9133caf6c9e4'
+         '45fcc6feb0ea9b4ae09e4ba7b010864f')
+
+prepare() {
+  cd "$srcdir/uhd-$pkgver"
+  patch -Np1 -i ../boost-1.67.patch
+}
+
+build() {
+  cd "$srcdir/uhd-$pkgver/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-$pkgver/host/build"
+  make test
+}
+
+package() {
+  cd "$srcdir/uhd-$pkgver/host/build"
+  make DESTDIR="$pkgdir" install
+  install -Dm644 "../utils/uhd-usrp.rules" "$pkgdir/usr/lib/udev/rules.d/10-uhd-usrp.rules"
+} 
+

Copied: libuhd/repos/community-staging-x86_64/boost-1.67.patch (from rev 338483, libuhd/trunk/boost-1.67.patch)
===================================================================
--- community-staging-x86_64/boost-1.67.patch	                        (rev 0)
+++ community-staging-x86_64/boost-1.67.patch	2018-06-02 21:40:30 UTC (rev 338484)
@@ -0,0 +1,12 @@
+diff -upr uhd-3.11.1.0.orig/host/lib/usrp/e300/e300_fifo_config.cpp uhd-3.11.1.0/host/lib/usrp/e300/e300_fifo_config.cpp
+--- uhd-3.11.1.0.orig/host/lib/usrp/e300/e300_fifo_config.cpp	2018-05-16 22:25:48.000000000 +0300
++++ uhd-3.11.1.0/host/lib/usrp/e300/e300_fifo_config.cpp	2018-06-03 00:16:53.119018076 +0300
+@@ -107,7 +107,7 @@ struct e300_fifo_poll_waiter
+         boost::mutex::scoped_lock l(_mutex);
+         if (_poll_claimed)
+         {
+-            _cond.timed_wait(l, boost::posix_time::microseconds(timeout*1000000));
++            _cond.timed_wait(l, boost::posix_time::microseconds(long(timeout*1000000)));
+         }
+         else
+         {



More information about the arch-commits mailing list