void-packages/srcpkgs/hidrd/template
2020-09-10 11:00:10 +02:00

36 lines
880 B
Bash

# Template file for 'hidrd'
pkgname=hidrd
version=0.2.0
revision=3
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
CFLAGS="-fcommon"
case $XBPS_TARGET_MACHINE in
*-musl)
configure_args+=' LIBS=-lobstack'
makedepends+=" musl-obstack-devel"
;;
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"
}
}