# SliTaz package receipt.

PACKAGE="xdg-utils"
VERSION="1.0.2"
CATEGORY="development"
SHORT_DESC="Assists desktop integration tasks."
MAINTAINER="paul@slitaz.org"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tgz"
WEB_SITE="http://portland.freedesktop.org/wiki/"
WGET_URL="http://portland.freedesktop.org/download/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
    while read file; do
        [ -f done.$file ] && continue
        echo "Apply $file..."
        patch -p1 < $stuff/$file || return 1
        touch done.$file
    done <<EOT
xdg-open-chrome.patch
EOT
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make && make DESTDIR=$PWD/_pkg install
}

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