# SliTaz package receipt.

PACKAGE="wyrd"
VERSION="1.4.5"
CATEGORY="utilities"
SHORT_DESC="Wyrd is a text-based front-end to Remind."
MAINTAINER="paul@slitaz.org"
DEPENDS="ncurses remind ocaml"
BUILD_DEPENDS="ncurses-dev remind ocaml"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://pessimization.com/software/wyrd/"
WGET_URL="http://pessimization.com/software/wyrd/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make -j1 && make -j1 DESTDIR=$PWD/_pkg install
}

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