1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
5 pkgdesc="A reverse-engineered version of Frontier Elite 2 to allow OpenGL rendering."
7 url="http://tom.noflag.org.uk/glfrontier.html"
9 depends=('sdl' 'mesa' 'libvorbis')
10 source=(http://tom.noflag.org.uk/glfrontier/frontvm3-20060623.tar.bz2)
11 md5sums=('36ee6690c1c55f7a475e0bed055e1f33')
15 cd $srcdir/frontvm3-20060623
16 make -f Makefile-i386 || return 1
23 # prepare folders for installation
24 mkdir -p $pkgdir/usr/bin
25 mkdir -p $pkgdir/usr/share/${pkgname}
26 mkdir -p $pkgdir/usr/share/${pkgname}/savs
27 mkdir -p $pkgdir/usr/share/applications/${pkgname}
28 mkdir -p $pkgdir/usr/bin/
30 cp $srcdir/frontvm3-20060623/fe2.s.bin $pkgdir/usr/share/${pkgname}
31 cp $srcdir/frontvm3-20060623/frontier $pkgdir/usr/share/${pkgname}
32 cp $srcdir/frontvm3-20060623/README $pkgdir/usr/share/${pkgname}
35 echo "cd /usr/share/glfrontier/
36 ./frontier" > $pkgdir/usr/bin/glfrontier
38 chmod +x $pkgdir/usr/bin/glfrontier
39 chmod 777 $pkgdir/usr/share/${pkgname}/savs
42 install -D -m644 $srcdir/../${pkgname}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop