# SliTaz package receipt.

PACKAGE="xorg-xmessage"
VERSION="1.0.5"
CATEGORY="x-window"
SHORT_DESC="Display a message or query in a window."
MAINTAINER="slaxemulator@gmail.com"
DEPENDS="xorg-libXaw xorg-libX11 xorg-libXt"
BUILD_DEPENDS="xorg-libXaw-dev xorg-libXt-dev"
SOURCE="xmessage"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/app/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --sysconfdir=/etc \
	--mandir=/usr/share/man --localstatedir=/var \
	$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/X11 $fs/usr/share
}