# $Id: usbutils-0.86-r2.smage2 3123 2009-10-13 14:43:44Z niro $ PNAME="usbutils" PVER="0.86" PBUILD="r3" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Various utilities dealing with the USB bus." HOMEPAGE="http://usb.cs.tum.edu/" DEPEND=">= virtual/glibc >= dev-libs/libusb-0.1.12" SDEPEND=">= net-misc/wget-1.12" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude gnuconfig SRC_URI=( sourceforge://linux-usb/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) # projectname is linux-usb but packagename usbutils UP2DATE="updatecmd_sourceforge linux-usb ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # support more compiler targets gnuconfig-update || die # 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 # installs pc file into wrong location sed -i '/^pkgconfigdir/s:datadir:datarootdir:' Makefile.in || 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 }