void-packages/srcpkgs/libsigrok/template

35 lines
1 KiB
Bash

# Template file for 'libsigrok'
pkgname=libsigrok
version=0.5.1
revision=2
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
patch_args="-Np1"
case $XBPS_TARGET_MACHINE in
i686*|x86_64*|ppc64*) makedepends+=" libieee1284-devel";;
esac
post_install() {
vinstall contrib/60-libsigrok.rules 0644 /usr/lib/udev/rules.d
vinstall contrib/61-libsigrok-uaccess.rules 0644 /usr/lib/udev/rules.d
}
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"
}
}