diff options
author | Jared Szechy <jared.szechy@gmail.com> | 2017-08-31 17:02:29 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-09-02 20:23:35 +0000 |
commit | fd57ed22cc876046f6bac0dd32b2824297a91133 (patch) | |
tree | 835bfe85d05da307e8467ad090fb0275abba07ef | |
parent | ab4a0beed1df246480bd9de7dbf9d58e772561d0 (diff) | |
download | aports-fd57ed22cc876046f6bac0dd32b2824297a91133.tar.bz2 aports-fd57ed22cc876046f6bac0dd32b2824297a91133.tar.xz |
testing/librtlsdr: new aport
https://osmocom.org/projects/sdr/wiki/rtl-sdr
Software defined radio receiver for Realtek RTL2832U
-rw-r--r-- | testing/librtlsdr/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/librtlsdr/APKBUILD b/testing/librtlsdr/APKBUILD new file mode 100644 index 0000000000..0939112d10 --- /dev/null +++ b/testing/librtlsdr/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Jared Szechy <jared.szechy@gmail.com> +# Maintainer: Jared Szechy <jared.szechy@gmail.com> +pkgname=librtlsdr +pkgver=0.5.3 +pkgrel=0 +pkgdesc="Software defined radio receiver for Realtek RTL2832U" +url="https://osmocom.org/projects/sdr/wiki/rtl-sdr" +arch="all" +license="GPL2" +depends="" +depends_dev="libusb-dev" +makedepends="$depends_dev cmake" +install="" +subpackages="$pkgname-dev rtl-sdr:tools" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/steve-m/$pkgname/archive/v$pkgver.tar.gz" + +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DDETACH_KERNEL_DRIVER=ON \ + -Wno-dev .. + make +} + +package() { + cd "$builddir"/build + + make DESTDIR="$pkgdir" install +} + +tools() { + pkgdesc="Software defined radio receiver for Realtek RTL2832U (tools)" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ +} + +sha512sums="b2887b5df2728f8481b07fb4d8b9bee18b98c5c0ccd0c8e65c2e784a32826cc2301631e95e54071324e5dfbdaa11f0a5aa483cc619b864d4788c3700980b38b6 librtlsdr-0.5.3.tar.gz" |