community/libuhd to 3.10.2.0-3

This commit is contained in:
Kevin Mihelich 2018-01-06 20:51:18 +00:00
parent 40661643ad
commit 0953f45e0b

View file

@ -8,9 +8,9 @@
pkgname=libuhd
pkgver=3.10.2.0
_verstring='003_010_002_000'
pkgrel=2
pkgrel=3
pkgdesc="Universal Software Radio Peripheral (USRP) userspace driver"
arch=('x86_64' 'i686')
arch=('x86_64')
url="http://www.ettus.com/kb/category/software-documentation/uhd-manual"
license=('GPL')
depends=('boost-libs' 'orc' 'libusb')
@ -24,6 +24,11 @@ md5sums=('f1e1977cd6c146daf800df681cb22944'
prepare() {
patch -d uhd-release_$_verstring -p1 -i ../0001-remove-ineffectual-neon-check.patch
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() {