aboutsummaryrefslogtreecommitdiffstats
path: root/main/libusb/APKBUILD
blob: 00ff081fe2a235d5d3e545033aeb0afff4828ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libusb
pkgver=1.0.24
pkgrel=2
pkgdesc="Library that enables userspace access to USB devices"
url="https://libusb.info/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev"
replaces="libusbx"
makedepends="linux-headers"
source="https://github.com/libusb/libusb/releases/download/v$pkgver/libusb-$pkgver.tar.bz2
	f38f09da98acc63966b65b72029b1f7f81166bef.patch
	f6d2cb561402c3b6d3627c0eb89e009b503d9067.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-udev \
		--disable-static
	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5aea36a530aaa15c6dd656d0ed3ce204522c9946d8d39ffbb290dab4a98cda388a2598da4995123d1032324056090bd429e702459626d3e8d7daeebc4e7ff3dc  libusb-1.0.24.tar.bz2
fdfc2b02eb996661c75ce01652b623afa4339612c2fc84331187ad55ac93d94abe20f48bf3ec891138ebdb8703a29e8b45643518e896f298562f93a5749e014c  f38f09da98acc63966b65b72029b1f7f81166bef.patch
bdd8fde8302e4cf54e517d61261d3ed2e61959bf825d6eb0c063f108e772715e0e8e14672b4db93dfe981e94514ade1ac181bb29173983849b0086bfc71fa0bf  f6d2cb561402c3b6d3627c0eb89e009b503d9067.patch"