PKGBUILDs/community/libuhd/PKGBUILD

52 lines
1.3 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>
2022-02-07 06:33:44 +00:00
# remove when bumped upstream
2016-05-14 17:24:24 +00:00
pkgname=libuhd
2021-12-28 14:12:36 +00:00
pkgver=4.1.0.5
2022-02-07 06:33:44 +00:00
pkgrel=1.1
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')
2020-06-03 23:53:35 +00:00
url="https://files.ettus.com/manual/"
2016-05-14 17:24:24 +00:00
license=('GPL')
2017-05-29 17:29:28 +00:00
depends=('boost-libs' 'orc' 'libusb')
2020-12-31 14:55:15 +00:00
optdepends=('python: usrp utils'
'python-numpy: python api')
makedepends=('cmake' 'boost' 'python-mako' 'python-numpy')
2021-12-28 14:12:36 +00:00
options=(!lto)
2019-04-29 12:53:13 +00:00
# gpsd? dpdk?
2016-05-14 17:24:24 +00:00
2021-07-23 18:30:53 +00:00
source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/v$pkgver.tar.gz")
2021-12-28 14:12:36 +00:00
sha256sums=('73580bb8823338dbc0ffe2840088cb15d7496ef7d402a4816df17a8e5c8d0221')
2016-05-14 17:24:24 +00:00
2020-12-09 15:13:49 +00:00
prepare() {
2018-06-08 05:01:19 +00:00
cd "$srcdir/uhd-$pkgver/host"
2020-12-09 15:13:49 +00:00
mkdir build
}
build() {
cd "$srcdir/uhd-$pkgver/host/build"
2016-05-14 17:24:24 +00:00
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ \
2020-01-16 01:19:26 +00:00
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
2020-12-31 14:55:15 +00:00
-DENABLE_PYTHON_API=ON \
2016-05-14 17:24:24 +00:00
-DENABLE_EXAMPLES=OFF \
-DENABLE_UTILS=ON \
-DENABLE_TESTS=OFF \
-DENABLE_E100=ON \
2022-02-07 06:33:44 +00:00
-DENABLE_E300=ON
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"
}