[arch-commits] Commit in hackrf/repos (6 files)
Kyle Keen
kkeen at archlinux.org
Sat Aug 8 01:44:42 UTC 2015
Date: Saturday, August 8, 2015 @ 03:44:42
Author: kkeen
Revision: 138076
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
hackrf/repos/community-staging-i686/
hackrf/repos/community-staging-i686/PKGBUILD
(from rev 138075, hackrf/trunk/PKGBUILD)
hackrf/repos/community-staging-i686/hackrf.conf
(from rev 138075, hackrf/trunk/hackrf.conf)
hackrf/repos/community-staging-x86_64/
hackrf/repos/community-staging-x86_64/PKGBUILD
(from rev 138075, hackrf/trunk/PKGBUILD)
hackrf/repos/community-staging-x86_64/hackrf.conf
(from rev 138075, hackrf/trunk/hackrf.conf)
--------------------------------------+
community-staging-i686/PKGBUILD | 40 +++++++++++++++++++++++++++++++++
community-staging-i686/hackrf.conf | 2 +
community-staging-x86_64/PKGBUILD | 40 +++++++++++++++++++++++++++++++++
community-staging-x86_64/hackrf.conf | 2 +
4 files changed, 84 insertions(+)
Copied: hackrf/repos/community-staging-i686/PKGBUILD (from rev 138075, hackrf/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-08-08 01:44:42 UTC (rev 138076)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+pkgname=hackrf
+pkgver=2015.07.2
+pkgrel=1
+pkgdesc="Driver for HackRF, allowing general purpose software defined radio (SDR)."
+arch=('i686' 'x86_64')
+url="https://github.com/mossmann/hackrf"
+license=('GPL2')
+depends=('libusb')
+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=('67595d2dad1c299138baf9a85ec37341'
+ '01ad1ba4a27d820e8f9abeb5fa88bfc6')
+
+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
+ install -vD -m644 hackrf_jawbreaker_usb_rom_to_ram.bin "$pkgdir/usr/share/hackrf/hackrf_jawbreaker_usb_rom_to_ram.bin"
+ install -vD -m644 hackrf_one_usb_rom_to_ram.bin "$pkgdir/usr/share/hackrf/hackrf_usb_rom_to_ram.bin"
+ install -Dm644 "$srcdir/hackrf.conf" "$pkgdir/etc/modprobe.d/hackrf.conf"
+}
Copied: hackrf/repos/community-staging-i686/hackrf.conf (from rev 138075, hackrf/trunk/hackrf.conf)
===================================================================
--- community-staging-i686/hackrf.conf (rev 0)
+++ community-staging-i686/hackrf.conf 2015-08-08 01:44:42 UTC (rev 138076)
@@ -0,0 +1,2 @@
+# disable kernel drivers
+blacklist hackrf
Copied: hackrf/repos/community-staging-x86_64/PKGBUILD (from rev 138075, hackrf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-08-08 01:44:42 UTC (rev 138076)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Dominik Heidler <dheidler at gmail.com>
+pkgname=hackrf
+pkgver=2015.07.2
+pkgrel=1
+pkgdesc="Driver for HackRF, allowing general purpose software defined radio (SDR)."
+arch=('i686' 'x86_64')
+url="https://github.com/mossmann/hackrf"
+license=('GPL2')
+depends=('libusb')
+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=('67595d2dad1c299138baf9a85ec37341'
+ '01ad1ba4a27d820e8f9abeb5fa88bfc6')
+
+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
+ install -vD -m644 hackrf_jawbreaker_usb_rom_to_ram.bin "$pkgdir/usr/share/hackrf/hackrf_jawbreaker_usb_rom_to_ram.bin"
+ install -vD -m644 hackrf_one_usb_rom_to_ram.bin "$pkgdir/usr/share/hackrf/hackrf_usb_rom_to_ram.bin"
+ install -Dm644 "$srcdir/hackrf.conf" "$pkgdir/etc/modprobe.d/hackrf.conf"
+}
Copied: hackrf/repos/community-staging-x86_64/hackrf.conf (from rev 138075, hackrf/trunk/hackrf.conf)
===================================================================
--- community-staging-x86_64/hackrf.conf (rev 0)
+++ community-staging-x86_64/hackrf.conf 2015-08-08 01:44:42 UTC (rev 138076)
@@ -0,0 +1,2 @@
+# disable kernel drivers
+blacklist hackrf
More information about the arch-commits
mailing list