summaryrefslogtreecommitdiffstats
path: root/main/usbutils/APKBUILD
blob: 2841475b3a0ee6c5ee1d9c0ff927b2489e000bbe (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=usbutils
pkgver=007
pkgrel=2
pkgdesc="USB Device Utilities"
url="http://linux-usb.sourceforge.net/"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
depends="hwdata-usb"
makedepends="pkgconfig libusb-compat-dev"
source="http://www.kernel.org/pub/linux/utils/usb/usbutils/${pkgname}-${pkgver}.tar.xz"

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--datadir=/usr/share/hwdata \
		--disable-usbids \
		--disable-zlib
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/lib/
	mv "$pkgdir"/usr/share/pkgconfig \
		"$pkgdir"/usr/lib/
}

md5sums="c9df5107ae9d26b10a1736a261250139  usbutils-007.tar.xz"
sha256sums="7593a01724bbc0fd9fe48e62bc721ceb61c76654f1d7b231b3c65f6dfbbaefa4  usbutils-007.tar.xz"
sha512sums="ee5c9ae4b39747139dbf2c0295d0556c2087002a99c1a1c6de9b87714c0ed37c277471794f0c53b15f4f9e4323527eb5d15d7e1197f73e04f2de6978d3d85987  usbutils-007.tar.xz"