# Template file for 'usbutils'
pkgname=usbutils
version=006
revision=1
build_style=gnu-configure
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
hostmakedepends="pkg-config which hwids"
makedepends="libusb-devel"
homepage="http://linux-usb.sourceforge.net/"
short_desc="Linux USB utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
distfiles="${KERNEL_SITE}/utils/usb/$pkgname/${pkgname}-${version}.tar.xz"
checksum=d9b5b5e7e5f797896e42efaa0a1f83089210bfed79312c1f04dd30b4f729ed0e
long_desc="
 This package contains utilities for inspecting devices connected to a
 USB bus."

post_install() {
	# Remove lsusb.py - avoid useless python scripts
	rm -f ${DESTDIR}/usr/bin/lsusb.py
	# Remove usb ids - provided by hwids
	rm -rf ${DESTDIR}/usr/share/hwdata
	# Remove update-usbids.sh - handled by hwids
	rm -f ${DESTDIR}/usr/sbin/update-usbids.sh
}

usbutils_package() {
	depends="hwids"
	pkg_install() {
		vmove usr
	}
}
