# Maintainer: Sergej Pupykin # Maintainer: Niels Martignène # Contributor: Nicolas Avrutin # Contributor: Emmanuel Gil Peyrot pkgname=hidapi pkgver=0.9.0 pkgrel=2 pkgdesc='Simple library for communicating with USB and Bluetooth HID devices' arch=(x86_64) url='https://github.com/libusb/hidapi' license=('GPL3' 'BSD' 'custom') depends=('libusb') conflicts=('hidapi-git') source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz") sha256sums=('630ee1834bdd5c5761ab079fd04f463a89585df8fcae51a7bfe4229b1e02a652') build() { cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}" ./bootstrap ./configure --prefix=/usr make } package() { cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}" make DESTDIR="${pkgdir}/" install mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" rm -f "${pkgdir}/usr/share/doc/hidapi/"LICENSE* install -m0644 LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt "${pkgdir}/usr/share/licenses/${pkgname}/" }