# Template file for 'libsigrok'
pkgname=libsigrok
version=0.5.0
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config doxygen python3"
makedepends="glib-devel libzip-devel glibmm-devel libserialport-devel libusb-devel libftdi1-devel"
case $XBPS_TARGET_MACHINE in
	i686*|x86_64*) makedepends+=" libieee1284-devel";;
esac
short_desc="C library for talking to hardware"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-3"
homepage="https://sigrok.org/"
distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=4c8c86779b880a5c419f6c77a08b1147021e5a19fa83b0f3b19da27463c9f3a4

libsigrok-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
