diff --git a/srcpkgs/usbutils/template b/srcpkgs/usbutils/template index c6a25d44ad5..98d7ff1816e 100644 --- a/srcpkgs/usbutils/template +++ b/srcpkgs/usbutils/template @@ -1,10 +1,10 @@ # Template file for 'usbutils' pkgname=usbutils -version=010 +version=012 revision=1 build_style=gnu-configure configure_args="--datadir=/usr/share/hwdata --disable-zlib" -hostmakedepends="pkg-config" +hostmakedepends="autogen automake libtool pkg-config" makedepends="eudev-libudev-devel libusb-devel" depends="hwids" short_desc="Linux USB utilities" @@ -13,7 +13,18 @@ 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=61c7364bb4986fb05e5067e4ac5585b1299b664c57f761caecd2e9e724794a19 +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