void-packages/srcpkgs/rtl_433/template

28 lines
846 B
Bash

# Template file for 'rtl_433'
pkgname=rtl_433
version=22.11
revision=2
build_style=cmake
hostmakedepends="pkg-config libtool"
makedepends="librtlsdr-devel SoapySDR-devel libusb-devel openssl-devel"
short_desc="RTLSDR based 433MHz generic data receiver"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://github.com/merbanan/rtl_433"
changelog="https://raw.githubusercontent.com/merbanan/rtl_433/master/CHANGELOG.md"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=61a9163d69cc4b1da46aebbcaf969bd180a055a6b90f42ad281218cc4fbefb86
post_install() {
vmkdir usr/share/examples
mv ${DESTDIR}/usr/etc/rtl_433 ${DESTDIR}/usr/share/examples
}
rtl_433-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
}
}