#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=anagramarama
pkgver=0.4
pkgrel=1gv
source=("http://anagramarama.googlecode.com/files/anagramarama-src-$pkgver.tar.gz" "anagramarama" "anagramarama.desktop" "anagramarama.png")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "gpl.txt")
url=http://code.google.com/p/anagramarama

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"anagramarama (word game based on anagrams)"
"Like anagrams? You'll love anagramarama. The aim is to find as many"
"words as possible in the time available. Get the longest word and you"
"will advance to the next level. Three words describe it..."
"Simple Addictive Fun"
"Multi Lingual Dictionaries mean that you can play in English, French,"
"Italian, Portuguese and more... International translation effort"
"underway right now. Please join the project to help out!"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	sed -i "s/-O9/$CFLAGS/" makefile.linux
	make -f makefile.linux || return 1
	mkdir -p $startdir/pkg/usr/share/anagramarama
	cp -r ag audio i18n $startdir/pkg/usr/share/anagramarama
	mkdir -p $startdir/pkg/usr/bin
	cp $startdir/src/anagramarama $startdir/pkg/usr/bin/
	chmod 755 $startdir/pkg/usr/bin/anagramarama
	mkdir -p $startdir/pkg/usr/share/applications
	cp $startdir/src/anagramarama.desktop $startdir/pkg/usr/share/applications/
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/64x64/apps
	cp $startdir/src/anagramarama.png $startdir/pkg/usr/share/icons/hicolor/64x64/apps/
}