Name libusb
Description Library that enables userspace access to USB devices
Version 1.0.28-r0
Package Base libusb
Homepage https://libusb.info/
Maintainers ['Natanael Copa <ncopa@alpinelinux.org>']
Contributors []
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/libusb
Sources ['https://github.com/libusb/libusb/releases/download/v1.0.28-r0/libusb-1.0.28-r0.tar.bz2']
Dependencies ['libc.musl-x86_64.so.1']
Optional-Dependencies []
Build-Dependencies ['linux-headers']
Provides ['so:libusb-1.0.so.0=0.5.0']
Builddate 24-03-2025 15:50:14
Architecture x86_64
Distro-Version v3.22
Licenses ['LGPL-2.1-or-later']
Hash Q1mSaiG9/TKuzRaHBtk+zczLKpkEk=
# 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
"