1 # Maintainer: J. W. Birdsong <jwbirdsong AT gmail DOT com>
2 # Contributor: Travis Nickles <ryoohki7@yahoo.com>
4 pkgname=enemy-territory-fortress
7 pkgdesc="Class-based teamplay shooter"
8 url="http://teamfortress.wikia.com/wiki/Enemy_Territory_Fortress"
10 arch=('i686' 'x86_64')
11 depends=('enemy-territory')
13 backup=(opt/enemy-territory/etf/etf_server.cfg)
14 source=(http://files.kgaming.eu/etf/linux/full/etf_1.6-english-2.run et-f.desktop \
16 md5sums=('235b1a7e8153b1c0ed422f775d25d3ac' '2056bdd3570714a36ea9f834b29bf0db'\
17 'e53691f51a18fc745a927b105c81225b' 'fc5f164f07219ef695e54f372cf917f2')
18 install=enemy-territory-fortress.install
22 chmod +x etf_1.6-english-2.run
23 ./etf_1.6-english-2.run --noexec --target etf
25 rm -r etf/bin etf/enemy-territory.xml etf/README.etf \
26 etf/search.sh etf/setup.{data,sh} etf/uninstall
27 tar -xzf etf/etf.tar.gz
28 tar -xzf etf/cfgnormal.tar.gz
29 rm etf/cfg{hi,low,normal,xtrahi}.tar.gz etf/etf.tar.gz
31 find ${srcdir}/etf -type d -exec chmod 755 '{}' \;
32 find ${srcdir}/etf -type f -exec chmod 644 '{}' \;
33 install -D -m 755 et-f.sh etf/et-f
34 install -D -m 755 et-fded.sh etf/et-fded
36 mkdir -p ${pkgdir}/opt/enemy-territory ${pkgdir}/usr/bin
37 mv etf ${pkgdir}/opt/enemy-territory
38 install -D -m 644 et-f.desktop ${pkgdir}/usr/share/applications/et-f.desktop
39 ln -sf /opt/enemy-territory/etf/{et-f,et-fded} ${pkgdir}/usr/bin/