[arch-commits] Commit in hidapi/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Thu Oct 29 16:42:04 UTC 2020


    Date: Thursday, October 29, 2020 @ 16:42:04
  Author: ffy00
Revision: 736544

archrelease: copy trunk to community-staging-x86_64

Added:
  hidapi/repos/community-staging-x86_64/
  hidapi/repos/community-staging-x86_64/PKGBUILD
    (from rev 736543, hidapi/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: hidapi/repos/community-staging-x86_64/PKGBUILD (from rev 736543, hidapi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-10-29 16:42:04 UTC (rev 736544)
@@ -0,0 +1,35 @@
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Niels Martignène <niels.martignene at gmail.com>
+# Contributor: Nicolas Avrutin <nicolasavru at gmail.com>
+# Contributor: Emmanuel Gil Peyrot <linkmauve at linkmauve.fr>
+
+pkgname=hidapi
+pkgver=0.10.0
+pkgrel=1
+pkgdesc='Simple library for communicating with USB and Bluetooth HID devices'
+arch=(x86_64)
+url='https://github.com/libusb/hidapi'
+license=('GPL3' 'BSD' 'custom')
+makedepends=('systemd' 'systemd-libs' 'libusb')
+optdepends=('libusb: for the libusb backend -- hidapi-libusb.so'
+            'libudev.so: for the hidraw backend -- hidapi-hidraw.so')
+source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('469f9bc67e4c942e50c65725758e234d1876e99d3a80d7e92af768899794c03dfbcda66adf2f9d6304b8b2db7832d3d36f3e226f475f0233eb9f493ca14da73b')
+
+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}/"
+}



More information about the arch-commits mailing list