aboutsummaryrefslogtreecommitdiffstats
path: root/main/usbutils/APKBUILD
blob: 48f8bf0c9a67093a161fb1961db7c38c076cf23c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=usbutils
pkgver=006
pkgrel=1
pkgdesc="USB Device Utilities"
url="http://linux-usb.sourceforge.net/"
arch="all"
license="GPL"
subpackags="$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="c9aa14ee3d6c991fda183f42cf72a8a8  usbutils-006.tar.xz"