void-packages/srcpkgs/libsigrok/template

29 lines
888 B
Bash

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