usbutils: use and depend on hwids.
This commit is contained in:
parent
4d05ca4e13
commit
96aceb6414
1 changed files with 13 additions and 13 deletions
|
@ -1,26 +1,26 @@
|
||||||
# Template file for 'usbutils'
|
# Template file for 'usbutils'
|
||||||
pkgname=usbutils
|
pkgname=usbutils
|
||||||
version=005
|
version=005
|
||||||
|
revision=1
|
||||||
homepage="http://linux-usb.sourceforge.net/"
|
homepage="http://linux-usb.sourceforge.net/"
|
||||||
#distfiles="${KERNEL_SITE}/utils/usb/$pkgname/$pkgname-$version.tar.bz2"
|
|
||||||
distfiles="ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.bz2"
|
|
||||||
makedepends="pkg-config which libusb-devel libusb-compat-devel"
|
|
||||||
short_desc="Linux USB utilities"
|
short_desc="Linux USB utilities"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="--datadir=/usr/share/hwdata --disable-zlib"
|
||||||
|
makedepends="pkg-config which libusb-devel"
|
||||||
|
fulldepends="hwids"
|
||||||
|
distfiles="ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.bz2"
|
||||||
checksum=a29e924cb726765e1b8d16e79d08aa142480606b46aa8467720b46f5767c1855
|
checksum=a29e924cb726765e1b8d16e79d08aa142480606b46aa8467720b46f5767c1855
|
||||||
long_desc="
|
long_desc="
|
||||||
This package contains utilities for inspecting devices connected to a
|
This package contains utilities for inspecting devices connected to a
|
||||||
USB bus."
|
USB bus."
|
||||||
|
|
||||||
|
post_install() {
|
||||||
do_build() {
|
# Remove lsusb.py - avoid useless python scripts
|
||||||
rm usb.ids
|
rm -f ${DESTDIR}/usr/bin/lsusb.py
|
||||||
$XBPS_FETCH_CMD http://www.linux-usb.org/usb.ids
|
# Remove usb ids - provided by hwids
|
||||||
./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib
|
rm -rf ${DESTDIR}/usr/share/hwdata
|
||||||
make ${makejobs}
|
# Remove update-usbids.sh - handled by hwids
|
||||||
}
|
rm -f ${DESTDIR}/usr/sbin/update-usbids.sh
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue