aboutsummaryrefslogtreecommitdiffstats
path: root/main/usbutils/APKBUILD
blob: c40010c3ca41bc3bef98b5c360dcbd7c5a9ef4f8 (plain)
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
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=usbutils
pkgver=010
pkgrel=0
pkgdesc="USB Device Utilities"
url="http://linux-usb.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
depends="hwdata-usb"
makedepends="libusb-dev eudev-dev"
source="https://www.kernel.org/pub/linux/utils/usb/usbutils/$pkgname-$pkgver.tar.xz
	hwdata.patch
	"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share/hwdata \
		--disable-usbids \
		--disable-zlib
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="8bc197307bc34b38c406c58c939be32f0b20ce9d3e7c977472fe4c3d47e791765432e381fd8d7393df621bbd4bf159ca24a08b22441770e7ae464e767f99a2e3  usbutils-010.tar.xz
137f4ec3e10e00e602807dfd9ea580ecfe485a761d81cc60e9cd18a3380807dedfa1df76ca4cf6db0b3e682a698d02e333347758dd4207c7952c1a02632fde35  hwdata.patch"