updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / tbp / PKGBUILD
blob5f343a3c4052e8df5e9762cd9ccccf5d951a9368
1 # Contributor: Black_Mage <vleon1@gmail.com>
3 pkgname=tbp
4 pkgver=3.4b
5 pkgrel=2
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/"
8 arch=('i686' 'x86_64')
9 license=('custom:freespace2')
10 depends=('fs2_open-svn')
11 optdepends=('tbp-cpack: extra campaigns')
12 makedepends=('p7zip')
13 source=(TheBabylonProject.7z::http://www.freespacemods.net/request.php?220
14         tbp.png
15         tbp.desktop
16         tbp.sh)
17         
18 md5sums=('f61c73bc19b55d315049e13dabb98290'
19          '6cb63b63d46927f37473e0ea6678c262'
20          '529b3ba8ccaf50605862dd24be492c1a'
21          'e856b612710e2f5ed3e9754078fafb88')
23 build() {
25   #Install the package
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
35   
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
40   #Install the bin file
41   install -D -m755 $srcdir/tbp.sh $pkgdir/usr/bin/tbp
42   
45 # vim:set ts=2 sw=2 et: