void-packages/srcpkgs/hidrd/template

40 lines
997 B
Bash

# Template file for 'hidrd'
pkgname=hidrd
version=0.2.0
revision=4
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
checkdepends="which"
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"
changelog="https://github.com/DIGImend/hidrd/raw/master/NEWS"
distfiles="https://github.com/DIGImend/hidrd/archive/${version}.tar.gz"
checksum=0147993dedb3066873d22fab1dc3aafec78d8c5783d168cccc43126f0fc3b307
CFLAGS="-fcommon"
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=' LIBS=-lobstack'
makedepends+=" musl-obstack-devel"
make_check="no" # needs error.h
;;
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"
}
}