1SUMMARY="A small GUI for showing the well known fortunes"
2DESCRIPTION="
3Fortuna is a nice-looking graphical program which displays a fortune when you \
4open it. Yeah, sure, there is already a fortune program, but it only shows \
5from the command line, you'll get a lot of repeats, it's quite a bit of work \
6to install more, and you have to muck around with your UserBootScript. Lots of \
7messing around. Then again, you can use Fortuna, which has none of this."
8HOMEPAGE="http://darkwyrm.beemulated.net/apps/fortuna.htm"
9COPYRIGHT="2006 DarkWyrm"
10LICENSE="MIT"
11REVISION="3"
12srcGitRev="51052ccef4643aef97f8a76b311c1aca0dc935bf"
13SOURCE_URI="https://github.com/HaikuArchives/Fortuna/archive/$srcGitRev.tar.gz"
14CHECKSUM_SHA256="1ec5b26eb867e9c2a8ab32ac2158ae3ccbc57aa74feb4b73d6aa21c3007cbcaf"
15SOURCE_DIR="Fortuna-$srcGitRev"
16
17ARCHITECTURES="all"
18
19PROVIDES="
20	fortuna = $portVersion
21	app:Fortuna = $portVersion
22	"
23REQUIRES="
24	haiku
25	"
26
27BUILD_REQUIRES="
28	haiku_devel
29	"
30BUILD_PREREQUIRES="
31	cmd:gcc
32	cmd:xres
33	"
34
35BUILD()
36{
37
38	rc src/Fortuna.rdef
39	g++ -o Fortuna -lbe src/main.cpp src/FortuneWindow.cpp src/FortuneFunctions.cpp
40	xres -o Fortuna src/Fortuna.rsrc
41	mimeset -f Fortuna
42}
43
44INSTALL()
45{
46	mkdir -p $appsDir
47	cp Fortuna $appsDir
48	addAppDeskbarSymlink $appsDir/Fortuna
49}
50