void-packages/srcpkgs/usbutils/template

26 lines
906 B
Bash

# Template file for 'usbutils'
pkgname=usbutils
version=014
revision=1
build_style=gnu-configure
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
hostmakedepends="automake libtool pkg-config"
makedepends="eudev-libudev-devel libusb-devel"
depends="hwids"
short_desc="Linux USB utilities"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://linux-usb.sourceforge.net/"
changelog="https://raw.githubusercontent.com/gregkh/usbutils/master/NEWS"
distfiles="${KERNEL_SITE}/utils/usb/usbutils/usbutils-${version}.tar.xz"
checksum=3a079cfad60560227b67192482d7813bf96326fcbb66c04254839715f276fc69
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
}