PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/hidapi/PAGBUILD.yaml main

32 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132
pkgname: hidapi
pkgver: '0.15.0'
pkgrel: '2'
pkgdesc: Simple library for communicating with USB and Bluetooth HID devices
url: 'https://github.com/libusb/hidapi'
arch: x86_64
depends:
- libusb
- systemd
makedepends:
- cmake
- libusb
source:
- 'https://github.com/libusb/hidapi/archive/refs/tags/hidapi-${pkgver}.tar.gz'
sha256sums:
- 5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136
build: |
  cd ${pkgname}-${pkgver}

  cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
        -DCMAKE_POLICY_VERSION_MINIMUM=3.5

  make
  make DESTDIR=${PKGDIR} install

  install -Dm644 LICENSE-bsd.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE-bsd.txt
  install -Dm644 LICENSE-gpl3.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE-gpl3.txt
  install -Dm644 LICENSE-orig.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE-orig.txt
  install -Dm644 LICENSE.txt ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE.txt
package: |
  true