33 lines
924 B
Bash
33 lines
924 B
Bash
# Template file for 'hidapi'
|
|
pkgname=hidapi
|
|
version=0.9.0
|
|
revision=1
|
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="eudev-libudev-devel libusb-devel"
|
|
short_desc="Simple library for communicating with USB and Bluetooth HID devices"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/libusb/hidapi"
|
|
distfiles="https://github.com/libusb/hidapi/archive/hidapi-${version}.tar.gz"
|
|
checksum=630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652
|
|
|
|
pre_configure() {
|
|
./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
|
|
}
|
|
}
|