# $Id$ PNAME="iso-codes" PVER="3.78" PBUILD="r1" PCAT="app-text" DESCRIPTION="ISO language, territory, currency codes and their translations." HOMEPAGE="http://packages.debian.org/unstable/misc/iso-codes" DEPEND="" SDEPEND=">= sys-dev/gettext-0.18 >= dev-lang/python3-3.5 >= sys-dev/automake-4" SRCFILE="${PNAME}_${PVER}.orig.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( http://ftp.debian.org/debian/pool/main/i/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://ftp.debian.org/debian/pool/main/${PNAME:0:1}/${PNAME} | grep .tar.xz | sed -n 's/.*_\(.*\).t.*/\1/;$ p' | sed 's:.orig::g'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix wrong pkgconfig dir sed -i 's:(datadir)/pkgconfig:(libdir)/pkgconfig:g' Makefile.am || die # supress some annoying warnings touch NEWS AUTHORS || die aclocal || die autoconf || die automake --add-missing --foreign --copy || die }