color_lines-0.6.recipe revision b6407a3b
1SUMMARY="A classic lines puzzle game"
2DESCRIPTION="This strategy Game will make you think and concentrate \
3for hours if you accept the challenge. The game will randomly place three \
4color balls on the game board at every round, you have to strategically \
5select one ball (click on ball) and move it to the most convenient location \
6(click on target square)."
7HOMEPAGE="https://github.com/OpenA/color-lines-sdl"
8COPYRIGHT="2011 Peter Kosyh"
9LICENSE="GNU GPL v2"
10REVISION="4"
11SOURCE_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/color-lines/lines_$portVersion.tar.gz"
12CHECKSUM_SHA256="e20c87dfcc8f940c8af7784dad12e66fa1cd10d0d97766979fef00eb17c0b0b3"
13SOURCE_DIR="lines-$portVersion"
14PATCHES="color_lines-$portVersion.patch"
15
16ARCHITECTURES="!x86_gcc2 x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	color_lines$secondaryArchSuffix = $portVersion
21	app:color_lines = $portVersion
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	lib:libSDL_1.2$secondaryArchSuffix
26	lib:libSDL_image_1.2$secondaryArchSuffix
27	lib:libSDL_mixer_1.2$secondaryArchSuffix
28	"
29
30BUILD_REQUIRES="
31	haiku${secondaryArchSuffix}_devel
32	devel:libSDL$secondaryArchSuffix
33	devel:libSDL_image$secondaryArchSuffix
34	devel:libSDL_mixer$secondaryArchSuffix
35	"
36BUILD_PREREQUIRES="
37	cmd:gcc$secondaryArchSuffix
38	cmd:make
39	"
40
41BUILD()
42{
43	make PREFIX=$prefix BINDIR=$appsDir GAMEDATADIR=$dataDir/color-lines/
44}
45
46INSTALL()
47{
48	make PREFIX=$prefix BINDIR=$appsDir GAMEDATADIR=$dataDir/color-lines/ \
49		install
50	rm -rf $prefix/share
51	addAppDeskbarSymlink $appsDir/color-lines ColorLines
52}
53