PKGBUILDs/community/libuhd/PKGBUILD

55 lines
1.4 KiB
Bash
Raw Normal View History

2016-05-14 17:24:24 +00:00
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dominik Heidler <dheidler@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2019-04-29 12:53:13 +00:00
# - set -DNEON_SIMD_ENABLE=OFF
2016-05-14 17:24:24 +00:00
pkgname=libuhd
2019-08-21 12:37:49 +00:00
pkgver=3.14.1.0
2019-10-06 15:43:40 +00:00
pkgrel=2
2016-05-14 17:24:24 +00:00
pkgdesc="Universal Software Radio Peripheral (USRP) userspace driver"
2018-01-06 20:51:18 +00:00
arch=('x86_64')
2016-05-14 17:24:24 +00:00
url="http://www.ettus.com/kb/category/software-documentation/uhd-manual"
license=('GPL')
2017-05-29 17:29:28 +00:00
depends=('boost-libs' 'orc' 'libusb')
2016-05-14 17:24:24 +00:00
optdepends=('python2: usrp utils')
2018-08-15 12:25:20 +00:00
makedepends=('cmake' 'boost' 'python2-mako')
2019-04-29 12:53:13 +00:00
# gpsd? dpdk?
2016-05-14 17:24:24 +00:00
2019-04-29 12:53:13 +00:00
source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/v$pkgver.tar.gz")
2019-08-21 12:37:49 +00:00
md5sums=('2eaad9beeff8c6d9716c93d580fb7b1c')
2016-05-14 17:24:24 +00:00
prepare() {
2018-06-08 05:01:19 +00:00
cd "$srcdir/uhd-$pkgver"
2019-04-29 12:53:13 +00:00
# fix for py2
find -name "*.py" -or -name '*.py.in' | xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
2016-05-14 17:24:24 +00:00
}
build() {
2018-06-08 05:01:19 +00:00
cd "$srcdir/uhd-$pkgver/host"
2016-05-14 17:24:24 +00:00
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 \
2019-04-29 12:53:13 +00:00
-DENABLE_E300=ON \
-DNEON_SIMD_ENABLE=OFF
2016-05-14 17:24:24 +00:00
make
}
check() {
2018-06-08 05:01:19 +00:00
cd "$srcdir/uhd-$pkgver/host/build"
2016-05-14 17:24:24 +00:00
make test
}
package() {
2018-06-08 05:01:19 +00:00
cd "$srcdir/uhd-$pkgver/host/build"
2016-05-14 17:24:24 +00:00
make DESTDIR="$pkgdir" install
install -Dm644 "../utils/uhd-usrp.rules" "$pkgdir/usr/lib/udev/rules.d/10-uhd-usrp.rules"
}