void-packages/srcpkgs/hidrd/template

35 lines
855 B
Bash
Raw Normal View History

2020-05-03 09:30:48 +00:00
# Template file for 'hidrd'
pkgname=hidrd
version=0.2.0
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
short_desc="HID report descriptor I/O library and conversion tool"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/DIGImend/hidrd"
distfiles="https://github.com/DIGImend/hidrd/archive/${version}.tar.gz"
checksum=0147993dedb3066873d22fab1dc3aafec78d8c5783d168cccc43126f0fc3b307
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=' LIBS=-lobstack'
makedepends+=" musl-obstack"
;;
esac
pre_configure() {
vsed -i configure.ac -e 's/-Werror//'
autoreconf -f -i
}
hidrd-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}