# Maintainer: Nicolas Avrutin # Contributor: Emmanuel Gil Peyrot pkgname=hidapi-git pkgver=348.a88c724 pkgrel=1 pkgdesc="A Simple library for communicating with USB and Bluetooth HID devices." arch=(i686 x86_64) url="http://www.signal11.us/oss/hidapi/" license=('GPL3' 'BSD' 'custom') depends=('systemd-tools' 'libusbx' 'fox') makedepends=('git') options=('!libtool') source=("git+git://github.com/signal11/hidapi") md5sums=('SKIP') pkgver() { cd hidapi echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd hidapi ./bootstrap ./configure --enable-testgui --prefix=/usr make } package() { cd hidapi make DESTDIR="$pkgdir/" install install -D -m644 LICENSE-bsd.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-bsd.txt" install -D -m644 LICENSE-orig.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE-orig.txt" }