summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Biereigel2017-05-19 09:42:56 -0300
committerStefan Biereigel2017-05-19 09:42:56 -0300
commit0b1e25da22a12c5e13d9dabd3be279beb2f8c799 (patch)
tree7e150385434f2cb3c12619baa61e924db15bef57
downloadaur-0b1e25da22a12c5e13d9dabd3be279beb2f8c799.tar.gz
initial commit, builds libbladeRF from current git head
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD47
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9b2525dcdac
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = libbladerf-git
+ pkgdesc = Driver and userspace for the bladeRF SDR.
+ pkgver = 2016.06.r18.gc3eccc6d
+ pkgrel = 1
+ url = https://github.com/Nuand/bladeRF
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = cmake
+ makedepends = help2man
+ makedepends = doxygen
+ depends = libusb
+ provides = bladerf
+ conflicts = bladerf
+ source = git+https://github.com/Nuand/bladeRF
+ md5sums = SKIP
+
+pkgname = libbladerf-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..802f97dc55e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Stefan Biereigel <stefan@biereigel.de>
+
+pkgname=libbladerf-git
+pkgver=2016.06.r18.gc3eccc6d
+pkgrel=1
+pkgdesc="Driver and userspace for the bladeRF SDR."
+url="https://github.com/Nuand/bladeRF"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('libusb')
+provides=('bladerf')
+conflicts=('bladerf')
+makedepends=('cmake' 'help2man' 'doxygen')
+
+source=(git+https://github.com/Nuand/bladeRF)
+md5sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/bladeRF"
+ sed -i 's|MODE.*$|TAG+="uaccess"|' host/misc/udev/88-nuand.rules.in
+}
+
+pkgver() {
+ cd "$srcdir/bladeRF"
+ git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/bladeRF"
+ mkdir -p build
+ cd build
+ 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/build"
+ make DESTDIR="${pkgdir}" install
+}