4 pkgdesc="Zelda: Oni Link Begins is the sequel of Zelda: Return of the Hylian"
5 url="http://www.zeldaroth.fr/"
7 depends=('sdl_gfx' 'sdl_mixer' 'sdl_image')
8 makedepends=(imagemagick)
10 source=("http://www.zeldaroth.fr/us/files/OLB/Linux/ZeldaOLB_US-src-linux.zip" zolb.desktop)
11 md5sums=('e7b6988e3f5344d35a4ffd5abc6e3bf9'
12 '0eee36b5279df711800a6f2dc6cd3ff8')
14 cd $srcdir/ZeldaOLB_US-src-linux/src
16 # Fix the Game so that it reads save files from $HOME/.zroth
17 sed -i -e s~\"data/save/~string\(getenv\(\"HOME\"\)\)+\"/.zolb/~g Joueur.cpp
19 #Make the game treat /usr/share/zroth as its data directory
22 sed -i -e s~data/~/usr/share/zolb/~g $i
25 # Create the directory $HOME/.zroth if it doesnt exist
26 sed -i -e s~'(NULL));'~'&\n\tif (system(\"stat $HOME/.zolb \&> /dev/null")) system (\"mkdir $HOME/.zolb\");'~ main.cpp
32 install -Dm644 zolb.desktop $pkgdir/usr/share/applications/zolb.desktop
33 cd $srcdir/ZeldaOLB_US-src-linux/src/
35 install -Dm755 ZeldaOLB $pkgdir/usr/bin/zolb
38 for i in {map,music,sound}/*
40 install -Dm644 $i $pkgdir/usr/share/zolb/$i
46 install -Dm644 $i $pkgdir/usr/share/zolb/images/$i
48 mkdir -p $pkgdir/usr/share/icons/hicolor/256x256/apps
49 convert logos/fond.png -resize 256x256\! $pkgdir/usr/share/icons/hicolor/256x256/apps/zolb.png