# SliTaz package receipt.
PACKAGE="git-gui"
VERSION="0.13.0"
CATEGORY="development"
SHORT_DESC="Graphical interface for the Git dRCS."
MAINTAINER="ben@seawolfsanctuary.com"
DEPENDS="tk git"
BUILD_DEPENDS="$DEPENDS"
WEB_SITE="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html"
WGET_URL="git|http://repo.or.cz/r/git-gui.git"
BRANCH="gitgui-$VERSION"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	make clean
	make && make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs
	cp -a $_pkg/usr $fs/
	
	# Extra icons, .desktop file etc.:
	cp -a $stuff/* $fs/usr

	mkdir -p $fs/usr/bin
	ln -s /usr/lib/git-core/git-gui /usr/lib/git-core/git-citool \
		/usr/lib/git-core/git-gui--askpass $fs/usr/bin
}