1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
2 # Contributor: Travis Nickles <ryoohki7@yahoo.com>
7 pkgdesc="Doom 3 Last Man Standing. A coop mod for Doom 3."
8 url="http://lms.d3files.com/"
10 arch=('i686' 'x86_64')
13 backup=("opt/doom3/lms/cdoomcoopserver.cfg" \
14 "opt/doom3/lms/lmsmodserver.cfg" \
15 "opt/doom3/lms/roecoopserver.cfg" \
16 "opt/doom3/lms/spcoopserver.cfg")
17 source=('doom3-lms.desktop' 'doom3-lms.xpm' \
18 'LastManStandingCoop4Multiplatform.zip')
19 # Download URL: http://files.filefront.com/LastManStandingCoop4Multiplatformzip/;9934113;/fileinfo.html
20 md5sums=('44c655cf6989c68e746fb14b64ce30c6'
21 '25eaeb025c83690190712ecbc5377ca5'
22 '47a070f004ae6a9199bbd876a52cc7b0')
25 cd $startdir/src/lms4/
27 # Create Destination Directories
28 install -d $startdir/pkg/{usr/bin/,opt/doom3/}
30 # Modify Windows .bat Files to Linux .sh Files and Rename
34 /bin/sed -i 's:cd..:#!/bin/bash \n\ncd "/opt/doom3"\n:g' $i
35 /bin/sed -i 's:doom3.exe:./doom.x86:g' $i
36 echo -e " \$* \rexit $?\r" >> $i
39 install -D -m 755 $i $startdir/src/lms4/`basename $i .bat`.sh
42 # Remove Unneeded Files
43 rm $startdir/src/lms4/{*.bat,*.url,lms.ico,Lms2.ico,docs/*.url}
46 mv $startdir/src/lms4 $startdir/pkg/opt/doom3/
49 install -D -m 644 $startdir/src/doom3-lms.xpm \
50 $startdir/pkg/usr/share/pixmaps/doom3-lms.xpm
52 # Install Desktop File
53 install -D -m 644 $startdir/src/doom3-lms.desktop \
54 $startdir/pkg/usr/share/applications/doom3-lms.desktop
56 # Create Main Launcher Shortcut
57 ln -s /opt/doom3/lms4/LMS4.sh $startdir/pkg/usr/bin/doom3-lms