updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / iostvoy / PKGBUILD
blobc4e2c3137235a9bd5be59c5aa372321bf32d204e
1 # Contributor: Karsten Heiken <karsten[at]disposed[dot]de>
3 pkgname=iostvoy
4 pkgver=1.37
5 pkgrel=1
6 pkgdesc="Star Trek Voyager: Elite Force ported to the opensourc'ed Q3-engine. Retail game needed to play!"
7 arch=('i686' 'x86_64')
8 depends=('sdl' 'openal')
9 url="http://thilo.kickchat.com/efport-progress/"
10 license=('unknown')
11 depends=('openal' 'sdl' 'libvorbis' 'bash' 'libmad')
12 optdepends=('curl: download maps, sounds, models ingame via http/ftp')
13 install=iostvoy.install
14 source=(http://thilo.kickchat.com/efport-progress/bin/linux/io_eliteforce-$pkgver.run 
15                 'stvoyhm.desktop' 'stvoyHM.launcher' 'stvoyded.launcher')
16 md5sums=('b4c45c90800fe8681b5ecec70d21b390'
17          '3ce2de8db8fbb48c21f0ae1d971f5d27'
18          '732558a53241f70b301bd574adecdaab'
19          '4e034dc72cee3100b06d128fd5b02a9b')
21 build() {
22         chmod +x io_eliteforce-$pkgver.run
23         ./io_eliteforce-$pkgver.run --noexec --tar xf
24         
25         # Install correct version
26         if [ "$CARCH" = "x86_64" ]; then
27                 # x86_64
28                 tar xf iostvoyHM.x86_64.tar
29                 install -D $srcdir/iostvefded.x86_64 \
30                         $pkgdir/opt/iostvoy/iostvoyded
31                 install -D $srcdir/iostvoyHM.x86_64 \
32                         $pkgdir/opt/iostvoy/iostvoyHM
33         else
34                 # i686
35                 tar xf iostvoyHM.i386.tar
36                 install -D $srcdir/iostvefded.i386 \
37                         $pkgdir/opt/iostvoy/iostvoyded
38                 install -D $srcdir/iostvoyHM.i386 \
39                         $pkgdir/opt/iostvoy/iostvoyHM
40         fi
41         
42         # Install baseEF-directory
43         mkdir -p $pkgdir/opt/iostvoy/baseEF
44         install -m 644 $srcdir/*.pk3 \
45                 $pkgdir/opt/iostvoy/baseEF/
46                 
47         # Install launchers
48         install -D $srcdir/stvoyded.launcher \
49                 $pkgdir/usr/bin/stvoyded
50         install -D $srcdir/stvoyHM.launcher \
51                 $pkgdir/usr/bin/stvoyHM
53         # Install Icon File
54         install -D -m 644 $srcdir/stvoyhm.png \
55                 $pkgdir/usr/share/pixmaps/stvoyhm.png
56                 
57         # Install Desktop File
58         install -D -m 644 $srcdir/stvoyhm.desktop \
59                 $pkgdir/usr/share/applications/stvoyhm.desktop