39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'airspy'
|
|
pkgname=airspy
|
|
version=1.0.10
|
|
revision=1
|
|
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 <brainwave@openmailbox.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://airspy.com/"
|
|
distfiles="https://github.com/airspy/airspyone_host/archive/v${version}.tar.gz"
|
|
checksum=fcca23911c9a9da71cebeffeba708c59d1d6401eec6eb2dd73cae35b8ea3c613
|
|
|
|
pre_configure() {
|
|
vsed -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
|
|
}
|
|
}
|