removed community/libuhd

This commit is contained in:
Kevin Mihelich 2022-06-06 12:50:17 +00:00
parent 97a5fbc3e7
commit 432d06959e

View file

@ -1,51 +0,0 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dominik Heidler <dheidler@gmail.com>
# remove when bumped upstream
pkgname=libuhd
pkgver=4.2.0.0
pkgrel=1.1
pkgdesc="Universal Software Radio Peripheral (USRP) userspace driver"
arch=('x86_64')
url="https://files.ettus.com/manual/"
license=('GPL')
depends=('boost-libs' 'orc' 'libusb')
optdepends=('python: usrp utils'
'python-numpy: python api')
makedepends=('cmake' 'boost' 'python-mako' 'python-numpy')
options=(!lto)
# gpsd? dpdk?
source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/v$pkgver.tar.gz")
sha256sums=('ad15cedc8a4b9ba78078f1c4c3c179eff8297a08e44928679de896ca42313e6b')
prepare() {
cd "$srcdir/uhd-$pkgver/host"
mkdir build
}
build() {
cd "$srcdir/uhd-$pkgver/host/build"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DENABLE_PYTHON_API=ON \
-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"
}