void-packages/srcpkgs/hidapi/template
Juan RP d3bc0de1e7 xbps-src: get rid of etc/{defaults.,}virtual.
It wasn't too useful after all and this slowed down the dependency
process marginally.

We don't need this, we can live without this.
2016-03-22 10:39:45 +01:00

35 lines
1,018 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
}
}