# $Id$ PNAME="kudzu" PVER="1.2.86" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Kudzu is a Linux hardware probing library and the associated configuration program." HOMEPAGE="http://fedora.redhat.com/projects/additional-projects/kudzu/" DEPEND="" SDEPEND=">= sys-apps/pciutils-3 >= dev-libs/dietlibc-0.31 >= dev-libs/popt-1.15 >= dev-lang/python-2.6" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.2.13-pciids.patch ) UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix pci.ids location mpatch ${PNAME}-1.2.13-pciids.patch || die } src_compile() { cd ${SRCDIR} mmake RPM_OPT_FLAGS="${CFLAGS}" all || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} libdir=${BINDIR}/usr/$(mlibdir) install install-lib || die minstalldocs COPYING README || die }