1 # Contributor: Black_Mage <vleon1@gmail.com>
6 pkgdesc="The Babylon Project is a group of dedicated individuals who are trying to bring the essence of Babylon 5 space combat to Freespace 2 engine"
7 url="http://babylon.hard-light.net/"
9 license=('custom:freespace2')
10 depends=('fs2_open-svn')
11 optdepends=('tbp-cpack: extra campaigns')
13 source=(TheBabylonProject.7z::http://www.freespacemods.net/request.php?220
18 md5sums=('f61c73bc19b55d315049e13dabb98290'
19 '6cb63b63d46927f37473e0ea6678c262'
20 '529b3ba8ccaf50605862dd24be492c1a'
21 'e856b612710e2f5ed3e9754078fafb88')
26 7z x TheBabylonProject.7z -o$pkgdir/opt/
27 mv $pkgdir/opt/The\ Babylon\ Project $pkgdir/opt/tbp
29 #Remove obsolute configs parameters for fs2_open (its one line because otherwise, the file created has extra spaces ^.^)
30 sed "1,1c\-ambient_factor 65 -spec -glow -env -mipmap -nomotiondebris -missile_lighting -dualscanlines -targetinfo -orbradar -rearm_timer -ship_choice_3d -3dwarp -warp_flash -tbp -snd_preload" -i $pkgdir/opt/tbp/data/cmdline_fso.cfg
32 #Fix the permissions of the package
33 find $pkgdir/opt -type f -exec chmod 644 {} + || return 1
34 find $pkgdir/opt -type d -exec chmod 755 {} + || return 1
36 #Install the .desktop and icon files
37 install -D -m644 $srcdir/tbp.png $pkgdir/usr/share/pixmaps/tbp.png
38 install -D -m644 $srcdir/tbp.desktop $pkgdir/usr/share/applications/tbp.desktop
41 install -D -m755 $srcdir/tbp.sh $pkgdir/usr/bin/tbp
45 # vim:set ts=2 sw=2 et: