void-packages/srcpkgs/libsigrok/template

31 lines
901 B
Bash

# Template file for 'libsigrok'
pkgname=libsigrok
version=0.4.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config doxygen python3"
_devicelibs="libserialport-devel libusb-devel libftdi1-devel"
case $XBPS_TARGET_MACHINE in
i686* | x86_64*) _devicelibs+=" libieee1284-devel";;
esac
makedepends="glib-devel libzip-devel glibmm-devel ${_devicelibs}"
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=5f291f3fee36e6dab1336f1c78596e50588831bc5ebd7cddc2a95fe8c71d669e
libsigrok-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${_devicelibs}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}