1 # Contributor: Gary James <garyjames82@gmail.com>
2 # Maintainer: SanskritFritz (gmail)
7 pkgdesc="Remake of the 80's 8-bit classic Head over Heels"
9 url='http://retrospec.sgn.net/game/hoh'
10 license=('freeware' 'closed source')
13 # source=(http://www.foxjames.co.uk/linux/aur/$pkgname-$pkgver.tar.bz2)
14 source=('http://retrospec.sgn.net/games/hoh/bin/hohlin-101.tar.bz2'
15 'http://retrospec.sgn.net/games/hoh/bin/hoh-update-101.tar.bz2')
16 # Tell makepkg to use curl to download the sources (wget fails due to .htaccess setting on host)
17 # Note: curl will be the default anyway in next makepkg release
18 DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u')
19 md5sums=('927d1a1dee927b5c495bfd39b0458a45'
20 'c63b99a7ec19dfee278801231e9a1ce8')
23 cd "$srcdir/hoh-install-$pkgver"
24 mkdir -p $pkgdir/usr/bin
25 echo "#!/bin/bash" > $pkgdir/usr/bin/hoh
26 echo "export LD_LIBRARY_PATH=/usr/share/hoh/runtime" >> $pkgdir/usr/bin/hoh
27 echo "cd /usr/share/hoh" >> $pkgdir/usr/bin/hoh
28 echo "exec ./HoH \$@" >> $pkgdir/usr/bin/hoh
29 chmod +x $pkgdir/usr/bin/hoh
30 mkdir -p $pkgdir/usr/share/hoh
31 cp -af ./data/* $pkgdir/usr/share/hoh
33 mkdir -p $pkgdir/usr/share/applications
34 mkdir -p $pkgdir/usr/share/pixmaps
36 cp -af ./docs/gfx/icon-1.gif $pkgdir/usr/share/pixmaps/hoh.gif
37 echo "[Desktop Entry]" > $pkgdir/usr/share/applications/hoh.desktop
38 echo "Version=1.01" >> $pkgdir/usr/share/applications/hoh.desktop
39 echo "Encoding=UTF-8" >> $pkgdir/usr/share/applications/hoh.desktop
40 echo "Name=Head over Heels" >> $pkgdir/usr/share/applications/hoh.desktop
41 echo "Comment=Retro 80's classic" >> $pkgdir/usr/share/applications/hoh.desktop
42 echo "Exec=/usr/bin/hoh" >> $pkgdir/usr/share/applications/hoh.desktop
43 echo "Icon=/usr/share/pixmaps/hoh.gif" >> $pkgdir/usr/share/applications/hoh.desktop
44 echo "StartupNotify=true" >> $pkgdir/usr/share/applications/hoh.desktop
45 echo "Terminal=false" >> $pkgdir/usr/share/applications/hoh.desktop
46 echo "Type=Application" >> $pkgdir/usr/share/applications/hoh.desktop
47 echo "Categories=GNOME;GTK;Game;" >> $pkgdir/usr/share/applications/hoh.desktop
49 cd "$srcdir/hoh-update-$pkgver"
50 cp -af ./data/HoH $pkgdir/usr/share/hoh
54 # vim:set ts=2 sw=2 et: