1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-hidapi/APKBUILD
2023-01-20 02:30:17 +00:00

29 lines
839 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-hidapi
pkgver=0.13.1
pkgrel=0
pkgdesc="Cython interface for hidapi"
url="https://github.com/trezor/cython-hidapi"
arch="all"
license="GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools cython libusb-dev python3-dev eudev-dev hidapi-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/trezor/cython-hidapi/archive/$pkgver.tar.gz"
builddir="$srcdir/cython-hidapi-$pkgver"
build() {
python3 setup.py build --with-system-hidapi
}
check() {
python3 setup.py test --with-system-hidapi
}
package() {
python3 setup.py install --with-system-hidapi --prefix=/usr --root="$pkgdir"
}
sha512sums="
2bb3c96100a4de41bdd00992dcc8093ba636cf0c2805d39cf93ed13f5b7f39da32c943af4b4f3f0b360d0a9a0815f8500334942384fb2395d1a385c56c7f4192 py3-hidapi-0.13.1.tar.gz
"