# Contributor: Jared Szechy # Maintainer: Jared Szechy pkgname=librtlsdr pkgver=0.8.0 pkgrel=0 pkgdesc="Software defined radio receiver for Realtek RTL2832U" url="https://osmocom.org/projects/sdr/wiki/rtl-sdr" arch="all" license="GPL-2.0-or-later" options="!check" # no tests depends_dev="libusb-dev" makedepends="$depends_dev cmake samurai" subpackages="$pkgname-dev rtl-sdr:tools" source="$pkgname-$pkgver.tar.gz::https://github.com/librtlsdr/librtlsdr/archive/refs/tags/v$pkgver.tar.gz correct_udev_rules_path.patch timelocal.patch version.patch " build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DDETACH_KERNEL_DRIVER=ON \ -DINSTALL_UDEV_RULES=ON \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } tools() { pkgdesc="Software defined radio receiver for Realtek RTL2832U (tools)" amove usr/bin } sha512sums=" afef8508ccc1313470e8f5440fd7104298be23737eeae03954be912f93b6000317ec354412939c95956d3958ec4bf6e437d5ddb8817479b210dd5da544fc0a47 librtlsdr-0.8.0.tar.gz 8768be0e24cd5502f304363728caf65df10ae88806a2fffcde80acb4aa844d46b8433b5cb7cb5a658f7dece564e8c749f32a0a9636a49adb5e9d71530826b0f0 correct_udev_rules_path.patch f296c7bc6c0942e7d8ef00b3820de12d5497c8cc8b40fda091d28111d0249909b61f08ddae2462f13b144a7c9f24b721ee0e07f72c149ef2584659b280e67401 timelocal.patch 13d4591661b6450d99f60595826cce4d6184d7c040e8436ee0a805b3e183d0c7c8c1951809ee1702b0edd243c4db6c935483aee2039fcbfd214763e9f2fbf594 version.patch "