[arch-commits] Commit in hackrf/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 15:39:51 UTC 2020
Date: Tuesday, July 7, 2020 @ 15:39:51
Author: felixonmars
Revision: 658973
archrelease: copy trunk to community-staging-x86_64
Added:
hackrf/repos/community-staging-x86_64/
hackrf/repos/community-staging-x86_64/PKGBUILD
(from rev 658972, hackrf/trunk/PKGBUILD)
hackrf/repos/community-staging-x86_64/hackrf.conf
(from rev 658972, hackrf/trunk/hackrf.conf)
-------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
hackrf.conf | 2 ++
2 files changed, 49 insertions(+)
Copied: hackrf/repos/community-staging-x86_64/PKGBUILD (from rev 658972, hackrf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 15:39:51 UTC (rev 658973)
@@ -0,0 +1,47 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+pkgname=hackrf
+pkgver=2018.01.1
+pkgrel=2
+pkgdesc="Driver for HackRF, allowing general purpose software defined radio (SDR)."
+arch=('x86_64')
+url="https://github.com/mossmann/hackrf"
+license=('GPL2')
+depends=('libusb' 'fftw')
+makedepends=('cmake')
+
+#source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+source=("https://github.com/mossmann/hackrf/releases/download/v${pkgver}/hackrf-$pkgver.tar.xz"
+ 'hackrf.conf')
+md5sums=('5adc14e749d54dc9daf116810a5f1956'
+ '01ad1ba4a27d820e8f9abeb5fa88bfc6')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver/host"
+ # FS#41895
+ sed -i 's|MODE.*$|TAG+="uaccess"|' libhackrf/53-hackrf.rules*
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver/host"
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ../
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ pushd host/build
+ make DESTDIR="$pkgdir" install
+ popd
+ pushd host/libhackrf
+ install -vD -m644 53-hackrf.rules "$pkgdir/usr/lib/udev/rules.d/53-hackrf.rules"
+ popd
+ pushd firmware-bin
+ for i in *.{bin,dfu,xsvf}; do
+ install -vDm644 "$i" "$pkgdir/usr/share/hackrf/$i"
+ done
+ popd
+ install -Dm644 "$srcdir/hackrf.conf" "$pkgdir/etc/modprobe.d/hackrf.conf"
+}
Copied: hackrf/repos/community-staging-x86_64/hackrf.conf (from rev 658972, hackrf/trunk/hackrf.conf)
===================================================================
--- community-staging-x86_64/hackrf.conf (rev 0)
+++ community-staging-x86_64/hackrf.conf 2020-07-07 15:39:51 UTC (rev 658973)
@@ -0,0 +1,2 @@
+# disable kernel drivers
+blacklist hackrf
More information about the arch-commits
mailing list