# SliTaz package receipt.

PACKAGE="xorg-mkfontdir"
VERSION="1.0.7"
CATEGORY="x-window"
SHORT_DESC="Create an index of X font files in a directory."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
SOURCE="mkfontdir"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://xorg.freedesktop.org/"
WGET_URL="$XORG_MIRROR/app/$TARBALL"
TAGS="utility xorg fonts"

DEPENDS="xorg-mkfontscale"

current_version()
{
	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
	sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.ls sr
compile_rules()
{
	cd $src
	./configure \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $install/usr/bin $fs/usr
	chmod +x $fs/usr/bin/*
}