aports/main/libusb/APKBUILD

34 lines
756 B
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb
pkgver=1.0.28
pkgrel=0
pkgdesc="Library that enables userspace access to USB devices"
url="https://libusb.info/"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev"
replaces="libusbx"
makedepends="linux-headers"
source="https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-udev \
--enable-static
make -j1
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
0f4efa6b54e6195d2e5446652c2dc07358583e205d63bf438c4409511b8637d1700a71268c40499755747827d23cc730d9122267386f847bf781993c045c519f libusb-1.0.28.tar.bz2
"