Date: Monday, January 3, 2022 @ 22:34:01
  Author: eworm
Revision: 1092651

archrelease: copy trunk to community-testing-x86_64

Added:
  hidapi/repos/community-testing-x86_64/
  hidapi/repos/community-testing-x86_64/PKGBUILD
    (from rev 1092650, hidapi/trunk/PKGBUILD)

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

Copied: hidapi/repos/community-testing-x86_64/PKGBUILD (from rev 1092650, 
hidapi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-03 22:34:01 UTC (rev 1092651)
@@ -0,0 +1,41 @@
+# Maintainer: Sergej Pupykin <arch+...@sergej.pp.ru>
+# Maintainer: Niels Martignène <niels.martign...@gmail.com>
+# Contributor: Nicolas Avrutin <nicolasa...@gmail.com>
+# Contributor: Emmanuel Gil Peyrot <linkma...@linkmauve.fr>
+
+pkgname=hidapi
+pkgver=0.11.2
+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')
+provides=('libhidapi-hidraw.so' 'libhidapi-libusb.so')
+source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz";)
+sha512sums=('c4d04bf570aa98dd88d7ce08ef1abb0675d500c9aa2c22f0437fa30b700a94446779f77e1170267926d5f6f0d9cdb2bb81ad1fe20d158c18587fddbca59e9517')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
+
+  ./bootstrap
+}
+build() {
+  cd "${srcdir}/${pkgname}-${pkgname}-${pkgver}"
+
+  ./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}/"
+}

Reply via email to