void-packages/srcpkgs/hidapi/template

36 lines
1018 B
Bash

# Template file for 'hidapi'
pkgname=hidapi
_distver=0.8.0
_patchver=rc1
version=${_distver}${_patchver}
revision=1
wrksrc="${pkgname}-${pkgname}-${_distver}-${_patchver}"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="eudev-libudev-devel libusb-devel"
short_desc="A Simple library for communicating with USB and Bluetooth HID devices"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="3-clause-BSD"
homepage="http://www.signal11.us/oss/hidapi/"
distfiles="https://github.com/signal11/hidapi/archive/hidapi-${_distver}-${_patchver}.tar.gz"
checksum=3c147200bf48a04c1e927cd81589c5ddceff61e6dac137a605f6ac9793f4af61
pre_configure() {
NOCONFIGURE=1 ./bootstrap
}
post_install() {
rm -r ${DESTDIR}/usr/share
vlicense LICENSE-bsd.txt LICENSE
}
hidapi-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}