28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
# Contributor: Sergej Pupykin <arch+pub@sergej.pp.ru>
|
|
# Contributor: Niels Martignène <niels.martignene@gmail.com>
|
|
# Contributor: Nicolas Avrutin <nicolasavru@gmail.com>
|
|
# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
|
|
|
pkgname=hidapi
|
|
pkgver=0.14.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')
|
|
depends=('libusb' 'systemd-libs')
|
|
makedepends=('cmake')
|
|
provides=('libhidapi-hidraw.so' 'libhidapi-libusb.so')
|
|
source=("https://github.com/libusb/${pkgname}/archive/${pkgname}-${pkgver}.tar.gz")
|
|
sha512sums=('66a045144f90b41438898b82f0398e80223323ebfe6e4f197d2713696bb3ae60f36aea5a37a9999b34b12294783fd7e4c28c6e785462559cbe21276009da1eac')
|
|
|
|
build() {
|
|
cmake -B build -S ${pkgname}-${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="${pkgdir}" cmake --install build
|
|
install -Dm0644 ${pkgname}-${pkgname}-${pkgver}/LICENSE*.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
|
|
}
|