[arch-commits] Commit in libuhd/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Thu May 5 06:39:18 UTC 2022


    Date: Thursday, May 5, 2022 @ 06:39:18
  Author: arojas
Revision: 1195472

archrelease: copy trunk to community-staging-x86_64

Added:
  libuhd/repos/community-staging-x86_64/
  libuhd/repos/community-staging-x86_64/PKGBUILD
    (from rev 1195471, libuhd/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: libuhd/repos/community-staging-x86_64/PKGBUILD (from rev 1195471, libuhd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-05-05 06:39:18 UTC (rev 1195472)
@@ -0,0 +1,49 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+pkgname=libuhd
+pkgver=4.2.0.0
+pkgrel=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"
+} 



More information about the arch-commits mailing list