diff options
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/hidapi/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/abs/extra/hidapi/PKGBUILD b/abs/extra/hidapi/PKGBUILD new file mode 100644 index 0000000..e37503b --- /dev/null +++ b/abs/extra/hidapi/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru> +# Maintainer: Niels Martignène <niels.martignene@gmail.com> +# Contributor: Nicolas Avrutin <nicolasavru@gmail.com> +# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> + +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}/" +} |