# SliTaz package receipt.

PACKAGE="tintin++"
VERSION="2.02.20"
CATEGORY="games"
SHORT_DESC="Terminal-based MUD client."
MAINTAINER="samuel_trassare@yahoo.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/scandum/tintin"

SOURCE="tintin"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"

DEPENDS="pcre"

# What is the latest version available today?
current_version()
{
	wget -O - https://github.com/scandum/tintin/releases 2>/dev/null | \
	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
	cd	src &&
	./configure $CONFIGURE_ARGS && 
	make && 
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cook_copy_folders	bin
}