void-packages/srcpkgs/usbutils/template
2017-11-24 16:18:21 -05:00

24 lines
805 B
Bash

# Template file for 'usbutils'
pkgname=usbutils
version=009
revision=1
build_style=gnu-configure
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
hostmakedepends="pkg-config"
makedepends="libusb-devel eudev-libudev-devel"
depends="hwids"
homepage="http://linux-usb.sourceforge.net/"
short_desc="Linux USB utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
distfiles="${KERNEL_SITE}/utils/usb/$pkgname/${pkgname}-${version}.tar.xz"
checksum=8bbff0e54cb5f65a52be4feb9162fc0b022a97eb841b44784f7a89a9ea567160
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
}