# $Id$ PNAME="shared-mime-info" PVER="1.3" PBUILD="r1" PCAT="x11-misc" DESCRIPTION="This package contains the core database of common types and the *update-mime-database* command used to extend it." HOMEPAGE="http://freedesktop.org/wiki/Software/shared-mime-info/" DEPEND=">= dev-libs/glib2-2.40 >= dev-libs/libxml2-2.7" SDEPEND=">= dev-util/pkgconfig-0.25 >= dev-util/intltool-0.50" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://freedesktop.org/~hadess/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://freedesktop.org/~hadess/ | lasttarball xz" src_compile() { cd ${SRCDIR} # we update the mime database ourself mconfigure --disable-update-mimedb || die mmake -j1 || die } postinstall() { # update mime db if [ -x ${MROOT}/usr/bin/update-mime-database ] then echo "Updating shared mime info database ..." ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime fi }