# $Id$ PNAME="usbutils" PVER="007" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="Various utilities dealing with the USB bus." HOMEPAGE="http://usb.cs.tum.edu/" DEPEND=">= virtual/glibc >= dev-libs/libusb-1" SDEPEND=">= net-misc/wget-1.12" PROVIDE="virtual/usbutils" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( http://pkgs.fedoraproject.org/repo/pkgs/${PNAME}/${SRCFILE}/2e990265d472e2f6f0662356d654683b/${SRCFILE} http://mirror.anl.gov/pub/linux/utils/usb/${PNAME}/${SRCFILE} http://www.kernel.org/pub/linux/utils/usb/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/usb/${PNAME} | highesttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # update usb.ids install -d ${SRCDIR}/temp || die wget -P ${SRCDIR}/temp http://www.linux-usb.org/usb.ids || die mv ${SRCDIR}/temp/usb.ids ${SRCDIR} || die # gen missing configure script mautoreconf || die } src_compile() { cd ${SRCDIR} # put usb.ids in same place as pci.ids (/usr/share/misc) mconfigure --datadir=/usr/share/misc || die mmake -j1 || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # we use the libs from libusb-x.x.x-rx cause these are not compatible rm -rf ${BINDIR}/usr/lib || die rm -rf ${BINDIR}/usr/include || die minstalldocs AUTHORS COPYING ChangeLog NEWS README || die }