true-combat-elite: fixed sources, some perms and cleanup

This commit is contained in:
Jose V Beneyto 2013-02-21 11:52:04 +01:00
parent 9020050160
commit f232c2a248
3 changed files with 26 additions and 20 deletions

View File

@ -9,7 +9,7 @@ drwxr-xr-x root/root usr/share/enemy-territory/
drwxr-xr-x root/root usr/share/enemy-territory/tcetest/
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/ReadMe.rtf
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/autoexec.cfg
-rwxr-xr-x root/root usr/share/enemy-territory/tcetest/cgame.mp.i386.so
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/cgame.mp.i386.so
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/changelog.rtf
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/mp_bin.pk3
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/official.dat
@ -18,8 +18,7 @@ drwxr-xr-x root/root usr/share/enemy-territory/tcetest/
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/pak2.pk3
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/pak3.pk3
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/pak4.pk3
-rwxr-xr-x root/root usr/share/enemy-territory/tcetest/qagame.mp.i386.so
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/readme_tce0490b.txt
-rwxr-xr-x root/root usr/share/enemy-territory/tcetest/ui.mp.i386.so
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/qagame.mp.i386.so
-rw-r--r-- root/root usr/share/enemy-territory/tcetest/ui.mp.i386.so
drwxr-xr-x root/root usr/share/pixmaps/
-rw-r--r-- root/root usr/share/pixmaps/tce.xpm

View File

@ -1,3 +1,4 @@
93a1b7666f29cada8d121985d2b0eac8 TrueCombatElite_v049_Linux.run.gz
a02e03c26745f2eb0e72c63ba0d3ff15 tce
ed09515b41a4af92740c42c3053225a9 tce049b_all_os_fixed.zip
8e5662821fd973f0f290eae31f67ef01 true-combat-elite.desktop
a329c6d3877e12294fac5dc1f6e5aa55 true.combat.elite_0.49b-english-4.run

View File

@ -1,23 +1,29 @@
# Description: TrueCombat:Elite is a team-based realism modification based on Enemy Territory.
# URL: http://www.truecombatelite.net/
# Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
# Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
# URL: http://www.truecombatelite.com/
# Maintainer: Jose V Beneyto, sepen at crux dot nu
# Packager: Jose V Beneyto, sepen at crux dot nu
# Depends on: enemy-territory
name=true-combat-elite
version=0.49b
release=3
source=(http://darkstar.ist.utl.pt/pub/games/true.combat.elite_${version}-english-4.run \
tce ${name}.desktop)
release=4
source=(http://www.truecombatelite.com/files/TrueCombatElite_v049_Linux.run.gz \
http://www.truecombatelite.com/files/tce049b_all_os_fixed.zip \
tce $name.desktop)
build() {
chmod +x true.combat.elite_${version}-english-4.run
./true.combat.elite_${version}-english-4.run --noexec --target tmp
install -d ${PKG}/usr/share/enemy-territory
tar -C ${PKG}/usr/share/enemy-territory -xf tmp/tce_0.49b.tar
rm -f ${PKG}/usr/share/enemy-territory/*.{rtf.txt}
install -D -m 0755 ${SRC}/tce ${PKG}/usr/bin/tce
ln -sf /usr/bin/tce ${PKG}/usr/bin/${name}
install -D -m 0644 tmp/tce.xpm ${PKG}/usr/share/pixmaps/tce.xpm
install -D -m 0644 ${SRC}/${name}.desktop ${PKG}/usr/share/applications/${name}.desktop
chmod +x TrueCombatElite_v049_Linux.run.gz
./TrueCombatElite_v049_Linux.run.gz --noexec --target tmp
install -d $PKG/usr/share/enemy-territory
tar -C $PKG/usr/share/enemy-territory -xf tmp/tce_0.49.tar.bz2
rm -f $PKG/usr/share/enemy-territory/*.{rtf.txt}
# 0.49b
cp $SRC/*.{pk3,so,dat} $PKG/usr/share/enemy-territory/tcetest
install -D -m 0755 $SRC/tce $PKG/usr/bin/tce
ln -sf /usr/bin/tce $PKG/usr/bin/$name
install -D -m 0644 tmp/tce.xpm $PKG/usr/share/pixmaps/tce.xpm
install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
}