# Template file for 'airspy' pkgname=airspy version=1.0.9 revision=2 wrksrc=airspyone_host-${version} build_style=cmake hostmakedepends="pkg-config" makedepends="libusb-devel" _desc="Tiny and efficient software defined radio (SDR)" short_desc="${_desc} - tools" maintainer="bra1nwave " license="GPL-2.0-or-later" homepage="https://airspy.com/" distfiles="https://github.com/airspy/airspyone_host/archive/v${version}.tar.gz" checksum=967ef256596d4527b81f007f77b91caec3e9f5ab148a8fec436a703db85234cc pre_configure() { sed -i 's|MODE="660", GROUP="plugdev"|TAG+="uaccess"|' airspy-tools/52-airspy.rules } libairspy_package() { short_desc="${_desc} - library" pkg_install() { vmove usr/lib/*.so.* vinstall airspy-tools/52-airspy.rules 644 usr/lib/udev/rules.d/ } } libairspy-devel_package() { short_desc="${_desc} - development files" depends="libairspy>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/*.a vmove usr/lib/*.so vmove usr/lib/pkgconfig } }