[arch-commits] Commit in hidapi/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 13:52:35 UTC 2020
Date: Tuesday, July 7, 2020 @ 13:52:35
Author: felixonmars
Revision: 658624
archrelease: copy trunk to community-staging-x86_64
Added:
hidapi/repos/community-staging-x86_64/
hidapi/repos/community-staging-x86_64/PKGBUILD
(from rev 658623, hidapi/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: hidapi/repos/community-staging-x86_64/PKGBUILD (from rev 658623, hidapi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-07-07 13:52:35 UTC (rev 658624)
@@ -0,0 +1,34 @@
+# 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.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}/"
+}
More information about the arch-commits
mailing list