mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
added community/libuhd
This commit is contained in:
parent
eb605ab5ad
commit
7005121850
1 changed files with 52 additions and 0 deletions
52
community/libuhd/PKGBUILD
Normal file
52
community/libuhd/PKGBUILD
Normal file
|
@ -0,0 +1,52 @@
|
|||
# $Id$
|
||||
# Maintainer: Kyle Keen <keenerd@gmail.com>
|
||||
# Contributor: Dominik Heidler <dheidler@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - disable neon for AArch64
|
||||
|
||||
pkgname=libuhd
|
||||
pkgver=3.8.5
|
||||
_verstring='003_008_005'
|
||||
pkgrel=1
|
||||
pkgdesc="Universal Software Radio Peripheral (USRP) userspace driver"
|
||||
arch=('x86_64' 'i686')
|
||||
url="http://code.ettus.com/redmine/ettus/projects/uhd/wiki"
|
||||
license=('GPL')
|
||||
depends=('boost-libs' 'orc' 'libusbx')
|
||||
optdepends=('python2: usrp utils')
|
||||
makedepends=('cmake' 'boost' 'python2-cheetah')
|
||||
|
||||
source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/release_${_verstring}.tar.gz")
|
||||
md5sums=('d827d63de03c9087d0d011e44bff5dd1')
|
||||
|
||||
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|"
|
||||
|
||||
[[ $CARCH == "aarch64" ]] && CONFIG="-DHAVE_ARM_NEON_H=OFF"
|
||||
|
||||
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 $CONFIG
|
||||
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"
|
||||
}
|
||||
|
Loading…
Reference in a new issue