Receipt for: lincity-ng

source
# SliTaz package receipt.

PACKAGE="lincity-ng"
VERSION="2.9-beta"
CATEGORY="games"
SHORT_DESC="A City Simulation Game. It is a polished and improved version of the classic LinCity game."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/lincity-ng/lincity-ng/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}archive/$TARBALL"

DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-ttf 
	libxcb libxml2 mesa physfs"
BUILD_DEPENDS="autoconf automake ftjam libsdl-gfx-dev libsdl-image-dev 
	libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev libxml2-dev 
	mesa-dev physfs-dev pkg-config"

# What is the latest version available today?
current_version()
{
	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
	sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	./autogen.sh &&
	./configure				\
		--prefix=/usr			\
		--infodir=/usr/share/info	\
		--mandir=/usr/share/man		\
		$CONFIGURE_ARGS &&
	jam &&
	jam -sprefix=/usr install
}

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

	cp -a $install/usr/bin			$fs/usr
	cp -a $install/usr/share/applications	$fs/usr/share
	cp -a $install/usr/share/lincity-ng	$fs/usr/share
	cp -a $install/usr/share/pixmaps	$fs/usr/share
}