mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 02:17:14 +08:00
add hidapi 0.8.0
This commit is contained in:
parent
c4a0544a68
commit
118760ac85
30
hidapi/PKGBUILD
Normal file
30
hidapi/PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
pkgname=hidapi
|
||||||
|
pkgver=0.8.0rc1
|
||||||
|
_hidapiver=0.8.0-rc1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Simple library for communicating with USB and Bluetooth HID devices"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="http://www.signal11.us/oss/hidapi/"
|
||||||
|
license=('GPL3' 'BSD' 'custom')
|
||||||
|
depends=('libusb')
|
||||||
|
source=("https://github.com/signal11/hidapi/archive/hidapi-${_hidapiver}.tar.gz")
|
||||||
|
md5sums=('069f9dd746edc37b6b6d0e3656f47199')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/hidapi-hidapi-${_hidapiver}"
|
||||||
|
|
||||||
|
./bootstrap
|
||||||
|
./configure --prefix=/usr
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/hidapi-hidapi-${_hidapiver}"
|
||||||
|
|
||||||
|
make DESTDIR="${pkgdir}/" install
|
||||||
|
|
||||||
|
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
|
rm -f "${pkgdir}/usr/share/doc/hidapi/"LICENSE*
|
||||||
|
install -m644 LICENSE.txt LICENSE-bsd.txt LICENSE-orig.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user