1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
6 pkgdesc="True Combat: Elite (TCE) is a completely free, realistic, team-based modification for Enemy Territory."
7 url="http://www.truecombatelite.com/"
10 depends=('enemy-territory' 'libstdc++5')
11 [[ "$CARCH" == "x86_64" ]] && depends=('enemy-territory' 'lib32-libstdc++5')
13 backup=('opt/enemy-territory/tcetest/server.cfg')
15 source=('true-combat.desktop' 'true-combat.sh' 'true-combatded.sh' \
16 'http://dragons-perch.net/tce/tcetest049.zip' \
17 'http://dragons-perch.net/tce/tce049b_all_os_fixed.zip')
18 md5sums=('7100aaf825e599753b8a3b55628e8e78' 'f83243004e7791e139e6683c733df6e2'\
19 '55a9e175b1793463a03b60e8d780c97d' '996ef2743e36103a351199f3fd72e70f'\
20 'ed09515b41a4af92740c42c3053225a9')
25 # Unpack 0.49b Patch into 0.49 directory
26 unzip -o $srcdir/tce049b_all_os_fixed.zip -d $srcdir/tcetest/
28 # Remove Unneeded Files and Directories
29 rm $srcdir/tcetest/._Mac_users_run_me_first.pkg
30 rm $srcdir/tcetest/Mac\ Users\ Read\ Me\ First\ -\ Important\ Information.txt
31 rm $srcdir/tcetest/{cgame_mac,cgame_mp_x86.dll,qagame_mp_x86.dll,ui_mac,ui_mp_x86.dll}
32 rm -r $srcdir/tcetest/{Mac_users_run_me_first.pkg/,qagame_mac.bundle/}
35 install -d $pkgdir/usr/share/licenses/$pkgname
36 mv $srcdir/tcetest/EULA_TrueCombat_Elite.txt \
37 $pkgdir/usr/share/licenses/$pkgname/
39 # Copy Data to Package Directory
40 install -d $pkgdir/opt/enemy-territory/
41 mv $srcdir/tcetest $pkgdir/opt/enemy-territory/
43 # Install Client Launcher Script
44 install -D -m 755 true-combat.sh \
45 $pkgdir/usr/bin/true-combat
47 # Install Server Launcher Script
48 install -D -m 755 true-combatded.sh \
49 $pkgdir/usr/bin/true-combatded
52 install -D -m 644 $pkgdir/opt/enemy-territory/tcetest/tce_icon_pc.ico \
53 $pkgdir/usr/share/pixmaps/true-combat.ico
55 # Install Desktop File
56 install -D -m 644 true-combat.desktop \
57 $pkgdir/usr/share/applications/true-combat.desktop