diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-13 03:25:23 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-07-13 03:25:23 +0000 |
commit | 4a7144171d1f4f268356dceb2197bae544b69540 (patch) | |
tree | b8ea2e973d0e8e13952de64d18e7899d5e8de9ea /community/hackrf | |
parent | 98f05d09a1cb452ea643ff95bd855234387ee2c0 (diff) |
Sun Jul 13 03:22:17 UTC 2014
Diffstat (limited to 'community/hackrf')
-rw-r--r-- | community/hackrf/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/hackrf/PKGBUILD b/community/hackrf/PKGBUILD new file mode 100644 index 000000000..91a98a9d8 --- /dev/null +++ b/community/hackrf/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 115607 2014-07-12 16:46:33Z kkeen $ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: Dominik Heidler <dheidler@gmail.com> +pkgname=hackrf +pkgver=2014.04.1 +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") +md5sums=('bcdd6a9a99dfc5b1a277825d1be9e2ec') + +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/hackrf-tools + install -vD -m644 52-hackrf.rules "$pkgdir/usr/lib/udev/rules.d/52-hackrf.rules" + popd + pushd firmware-bin/hackrf-one + install -vD -m644 hackrf_usb_rom_to_ram.bin "$pkgdir/usr/share/hackrf/hackrf_usb_rom_to_ram.bin" +} |