mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/libusbsio to 2.1.11-2
This commit is contained in:
parent
70bb39cf62
commit
b0a2808ffc
1 changed files with 22 additions and 5 deletions
|
@ -4,14 +4,25 @@
|
|||
# - replace $CARCH with uname -m for v7
|
||||
|
||||
pkgbase=libusbsio
|
||||
pkgname=(libusbsio python-libusbsio)
|
||||
pkgname=(
|
||||
libusbsio
|
||||
python-libusbsio
|
||||
)
|
||||
pkgver=2.1.11
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Library for USB-HID communication over SPI, I2C or GPIO"
|
||||
arch=(x86_64)
|
||||
url="https://www.nxp.com/design/software/development-software/library-for-windows-macos-and-ubuntu-linux:LIBUSBSIO"
|
||||
license=(BSD)
|
||||
makedepends=(hidapi libusb python-build python-installer python-setuptools python-wheel systemd)
|
||||
makedepends=(
|
||||
hidapi
|
||||
libusb
|
||||
python-build
|
||||
python-installer
|
||||
python-setuptools
|
||||
python-wheel
|
||||
systemd
|
||||
)
|
||||
source=(https://www.nxp.com/downloads/en/libraries/$pkgbase-$pkgver-src.zip)
|
||||
sha512sums=('200717be44cdb2bb7cc7eeba29afb6aed8a88a72e7664377c1abf8c1d1f88f7de1ed05c9a7d6c960ae53e4b9420889c252d51fd807b1534396430004138518a0')
|
||||
b2sums=('711b7b59cec79ebc37f42eab7a7c377d6cf15ccc50982dfcacd4e8f6b0c4107ebf14f758a41ee9edad9d2d6d789c99376f1b181e37b5dfea8e543cf06f7b566a')
|
||||
|
@ -36,7 +47,10 @@ build() {
|
|||
}
|
||||
|
||||
package_libusbsio() {
|
||||
depends=(systemd-libs libudev.so)
|
||||
depends=(
|
||||
glibc
|
||||
systemd-libs libudev.so
|
||||
)
|
||||
|
||||
cd $pkgbase-$pkgver-src
|
||||
install -vDm 755 bin/linux_$(uname -m)/$pkgbase.so -t "$pkgdir/usr/lib/"
|
||||
|
@ -47,7 +61,10 @@ package_python-libusbsio() {
|
|||
local _site_packages="$(python -c 'import site; print(site.getsitepackages()[0])')"
|
||||
|
||||
pkgdesc+=" - Python bindings"
|
||||
depends=(libusbsio python)
|
||||
depends=(
|
||||
libusbsio=$pkgver
|
||||
python
|
||||
)
|
||||
|
||||
cd $pkgbase-$pkgver-src
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue