# SliTaz package receipt.

PACKAGE="galculator"
VERSION="1.3.4"
CATEGORY="system-tools"
SHORT_DESC="Graphical scientific calculator."
MAINTAINER="pankso@slitaz.org"
DEPENDS="gtk+ libglade xorg-libXdamage"
BUILD_DEPENDS="perl pkg-config gtk+-dev libglade-dev xorg-xproto intltool"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://galculator.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

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

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