[arch-commits] Commit in bladerf/repos/community-x86_64 (PKGBUILD PKGBUILD)

Kyle Keen kkeen at archlinux.org
Tue Jun 4 23:05:11 UTC 2019


    Date: Tuesday, June 4, 2019 @ 23:05:10
  Author: kkeen
Revision: 476919

archrelease: copy trunk to community-x86_64

Added:
  bladerf/repos/community-x86_64/PKGBUILD
    (from rev 476918, bladerf/trunk/PKGBUILD)
Deleted:
  bladerf/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  162 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 86 insertions(+), 76 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-04 23:04:54 UTC (rev 476918)
+++ PKGBUILD	2019-06-04 23:05:10 UTC (rev 476919)
@@ -1,76 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-# Contributor: Dominik Heidler <dheidler at gmail.com>
-
-# it looks like the release model has gotten better
-# keeping it more modular for now though
-
-pkgname=bladerf
-_libver=2.0.2
-_CLIver=1.5.1
-_FPGAver=0.10.2
-_firmver=2.3.2
-pkgver=$_libver
-pkgrel=1
-pkgdesc="Driver, userspace, fpga & firmware for the bladeRF SDR."
-url="https://github.com/Nuand/bladeRF"
-# https://github.com/Nuand/bladeRF/tags
-arch=('x86_64')
-license=('GPL2')
-depends=('libusb')
-makedepends=('cmake' 'help2man' 'doxygen')
-#backup=("etc/bladerf.cfg")
-
-source=(
-    "https://github.com/Nuand/bladeRF/archive/libbladeRF_v$_libver.tar.gz"
-    "https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"
-    "https://nuand.com/fpga/v$_FPGAver/hostedx115.rbf"
-    "https://www.nuand.com/fx3/bladeRF_fw_v$_firmver.img")
-
-md5sums=('ac1ace151d1039c5a88d59b155e17e02'
-         '4aabf1617901423569f425db93598884'
-         '33641f8a126bef1c0b7e6ba8bedda93f'
-         'c823ea5aa2c25c26bbaf4ab395ac559d')
-
-# bladeRF-cli is bundled with libbladeRF
-# bladeRF-cli can use libtecla (aur)?
-
-prepare() {
-  cd "$srcdir/bladeRF-libbladeRF_v$_libver"
-  # FS#47168
-  sed -i 's|MODE.*$|TAG+="uaccess"|' host/misc/udev/88-nuand.rules.in
-
-  # todo, report warning
-  sed -i '94i add_definitions(-Wno-error=format-truncation)' host/CMakeLists.txt
-
-  # FS#55326
-  sed -i '44s/^else/#&/' host/misc/udev/CMakeLists.txt
-}
-
-build() {
-  cd "$srcdir/bladeRF-libbladeRF_v$_libver"
-  mkdir -p build
-  cd build
-  CFLAGS+=" -Wno-error=stringop-truncation" cmake \
-    -DCMAKE_BUILD_TYPE=Release \
-    -DINSTALL_UDEV_RULES=ON \
-    -DBUILD_DOCUMENTATION=ON \
-    -DCMAKE_INSTALL_LIBDIR:PATH=lib \
-    -Dusb_LIBRARY:FILEPATH=/usr/lib/libusb-1.0.so \
-    -DCMAKE_INSTALL_PREFIX=/usr ../
-  make
-  # ENABLE_FX3_BUILD needs cypress toolchain
-  # really really wants to put files in /usr/lib64
-}
-
-package() {
-  cd "$srcdir/bladeRF-libbladeRF_v$_libver/build"
-  make DESTDIR="${pkgdir}" install
-  cd "$srcdir"
-  install -Dm644 "bladeRF_fw_v$_firmver.img" "$pkgdir/usr/share/bladerf/firmware/bladeRF_fw_v$_firmver.img"
-  install -Dm644 hostedx40.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx40.rbf"
-  install -Dm644 hostedx115.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx115.rbf"
-
-  # FS#54105
-  cd "$pkgdir/etc/udev/rules.d/"
-  mv 88-nuand.rules 70-nuand.rules
-}

Copied: bladerf/repos/community-x86_64/PKGBUILD (from rev 476918, bladerf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-06-04 23:05:10 UTC (rev 476919)
@@ -0,0 +1,86 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+
+# it looks like the release model has gotten better
+# keeping it more modular for now though
+
+pkgname=bladerf
+_libver=2.2.0
+_CLIver=1.7.1
+_FPGAver=0.10.2
+_firmver=2.3.2
+_noOScommit=0bba46e  # upstream has pinned a submodule to this
+pkgver=$_libver
+pkgrel=1
+pkgdesc="Driver, userspace, fpga & firmware for the bladeRF SDR."
+url="https://github.com/Nuand/bladeRF"
+# https://github.com/Nuand/bladeRF/tags
+arch=('x86_64')
+license=('GPL2')
+depends=('libusb')
+makedepends=('cmake' 'help2man' 'doxygen')
+#backup=("etc/bladerf.cfg")
+
+source=(
+    "https://github.com/Nuand/bladeRF/archive/libbladeRF_v$_libver.tar.gz"
+    "noOS-$_noOScommit.tgz::https://github.com/analogdevicesinc/no-OS/archive/$_noOScommit.tar.gz"
+    "https://nuand.com/fpga/v$_FPGAver/hostedx40.rbf"
+    "https://nuand.com/fpga/v$_FPGAver/hostedx115.rbf"
+    "https://www.nuand.com/fx3/bladeRF_fw_v$_firmver.img")
+
+md5sums=('19e62a3eeca1aaad5b6a67c70ceb9ce8'
+         '2c06ff9297d8beb0482a1b0b5e4d3128'
+         '4aabf1617901423569f425db93598884'
+         '33641f8a126bef1c0b7e6ba8bedda93f'
+         'c823ea5aa2c25c26bbaf4ab395ac559d')
+
+# bladeRF-cli is bundled with libbladeRF
+# bladeRF-cli can use libtecla (aur)?
+
+prepare() {
+  cd "$srcdir/bladeRF-libbladeRF_v$_libver"
+  # FS#47168
+  sed -i 's|MODE.*$|TAG+="uaccess"|' host/misc/udev/*.rules.in
+
+  # todo, report warning
+  sed -i '94i add_definitions(-Wno-error=format-truncation)' host/CMakeLists.txt
+
+  # FS#55326
+  sed -i '44s/^else/#&/' host/misc/udev/CMakeLists.txt
+
+  # manually replace the submodules
+  # because "git submodule init/update" doesn't work with a release tarball
+  rmdir --ignore-fail-on-non-empty thirdparty/analogdevicesinc/no-OS
+  ln -s "$srcdir/no-OS-$_noOSver"* thirdparty/analogdevicesinc/no-OS
+}
+
+build() {
+  cd "$srcdir/bladeRF-libbladeRF_v$_libver"
+  mkdir -p build
+  cd build
+  CFLAGS+=" -Wno-error=stringop-truncation" cmake \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DINSTALL_UDEV_RULES=ON \
+    -DBUILD_DOCUMENTATION=ON \
+    -DCMAKE_INSTALL_LIBDIR:PATH=lib \
+    -Dusb_LIBRARY:FILEPATH=/usr/lib/libusb-1.0.so \
+    -DCMAKE_INSTALL_PREFIX=/usr ../
+  make
+  # ENABLE_FX3_BUILD needs cypress toolchain
+  # really really wants to put files in /usr/lib64
+}
+
+package() {
+  cd "$srcdir/bladeRF-libbladeRF_v$_libver/build"
+  make DESTDIR="${pkgdir}" install
+  cd "$srcdir"
+  install -Dm644 "bladeRF_fw_v$_firmver.img" "$pkgdir/usr/share/bladerf/firmware/bladeRF_fw_v$_firmver.img"
+  install -Dm644 hostedx40.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx40.rbf"
+  install -Dm644 hostedx115.rbf "$pkgdir/usr/share/bladerf/fpga/hostedx115.rbf"
+
+  # FS#54105
+  cd "$pkgdir/etc/udev/rules.d/"
+  mv 88-nuand-bladerf1.rules   70-nuand-bladerf1.rules
+  mv 88-nuand-bladerf2.rules   70-nuand-bladerf2.rules
+  mv 88-nuand-bootloader.rules 70-nuand-bootloader.rules
+}


More information about the arch-commits mailing list