summaryrefslogtreecommitdiffstats
path: root/abs/extra/hidapi
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-10-04 18:55:43 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-10-04 18:55:43 (GMT)
commitc16e671aede001379874f3b9e79b56dfbea12ed6 (patch)
treef0b89e8442e9b080c28d47b190833e2b4bd66f6f /abs/extra/hidapi
parent6be02af43974c015965eaf14d7cb334fd7769086 (diff)
downloadlinhes_pkgbuild-c16e671aede001379874f3b9e79b56dfbea12ed6.zip
linhes_pkgbuild-c16e671aede001379874f3b9e79b56dfbea12ed6.tar.gz
linhes_pkgbuild-c16e671aede001379874f3b9e79b56dfbea12ed6.tar.bz2
hidapi: update to 0.9.0
Diffstat (limited to 'abs/extra/hidapi')
-rw-r--r--abs/extra/hidapi/PKGBUILD34
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}/"
+}