0676f7dd8d
Add autogen, automake, and libtool to hostmakedepends
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'usbutils'
|
|
pkgname=usbutils
|
|
version=012
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
|
|
hostmakedepends="autogen automake libtool pkg-config"
|
|
makedepends="eudev-libudev-devel libusb-devel"
|
|
depends="hwids"
|
|
short_desc="Linux USB utilities"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://linux-usb.sourceforge.net/"
|
|
#changelog="https://raw.githubusercontent.com/gregkh/usbutils/master/NEWS"
|
|
distfiles="${KERNEL_SITE}/utils/usb/usbutils/usbutils-${version}.tar.xz"
|
|
checksum=88634625f91840bc1993d2731cc081ee8d3b13d56069a95bdd6ac6ef0e063e46
|
|
|
|
pre_configure() {
|
|
local autogen_args
|
|
autogen_args="--prefix=/usr"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
autogen_args+="--build=${XBPS_CROSS_TRIPLET} --host=${XBPS_CROSS_TRIPLET}"
|
|
fi
|
|
|
|
./autogen.sh ${autogen_args}
|
|
}
|
|
|
|
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
|
|
}
|