summaryrefslogtreecommitdiffstats
path: root/main/usbutils/APKBUILD
blob: 251accc434760466525d2722c9f5b4bfac8895b8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=usbutils
pkgver=004
pkgrel=0
pkgdesc="USB Device Utilities"
url="http://linux-usb.sourceforge.net/"
arch="all"
license="GPL"
subpackags="$pkgname-doc"
depends=
makedepends="pkgconfig libusb-compat-dev"
source="http://mirror.anl.gov/pub/linux/utils/usb/usbutils/usbutils-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	rm usb.ids
	wget http://www.linux-usb.org/usb.ids
	./configure --prefix=/usr \
		--datadir=/usr/share/hwdata \
		--disable-zlib
	make || return 1
}

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

md5sums="481e1de453bcabbd5f43125bb4df2ab7  usbutils-004.tar.gz"