Date: Friday, April 7, 2023 @ 09:41:03
Author: felixonmars
Revision: 1440922
archrelease: copy trunk to community-staging-x86_64
Added:
libuhd/repos/community-staging-x86_64/
libuhd/repos/community-staging-x86_64/PKGBUILD
(from rev 1440921, libuhd/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: libuhd/repos/community-staging-x86_64/PKGBUILD (from rev 1440921,
libuhd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-07 09:41:03 UTC (rev 1440922)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <[email protected]>
+# Contributor: Dominik Heidler <[email protected]>
+
+pkgname=libuhd
+pkgver=4.4.0.0
+pkgrel=2
+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-setuptools' 'python-mako' 'python-numpy')
+options=(!lto)
+# gpsd? dpdk?
+
+source=("libuhd-$pkgver.tar.gz::https://github.com/EttusResearch/uhd/archive/v$pkgver.tar.gz")
+sha256sums=('a994382315b5528e575820c9c3cc9cfcf919cfc3455b1bd7f62004efc52d2327')
+
+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"
+}