From c16e671aede001379874f3b9e79b56dfbea12ed6 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 4 Oct 2020 18:55:43 +0000 Subject: hidapi: update to 0.9.0 --- abs/extra/hidapi/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 abs/extra/hidapi/PKGBUILD 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 +# 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}/" +} -- cgit v0.12