SUMMARY="A classical memory game"
DESCRIPTION="LPairs is a classical memory game. This means you have to \
find pairs of identical cards which will then be removed. Your time and \
tries needed will be counted but there is no highscore chart or limit to this."
HOMEPAGE="http://lgames.sourceforge.net/"
SOURCE_URI="http://sourceforge.net/projects/lgames/files/lpairs/lpairs-1.0.4.tar.gz"
CHECKSUM_SHA256="350237a51a5de6b2a557af687b4f16678056a0e8d8d96d7e395f6629481462c5"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2001 Michael Speck"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PATCHES="lpairs-1.0.4.patchset"

PROVIDES="
	lpairs = $portVersion
	cmd:lpairs = $portVersion
	"
REQUIRES="
	haiku
	lib:libsdl
	"
BUILD_REQUIRES="
	haiku_devel
	devel:libsdl
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	"

BUILD()
{
	libtoolize --force --copy --install
	runConfigure ./configure --disable-nls

	make $jobArgs
}

INSTALL()
{
	make install

	rm -rf $dataDir/applications
	rm -rf $dataDir/icons

	addAppDeskbarSymlink $binDir/lpairs LPairs
}
