1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
2 # Contributor: Andrew Simmons <andrew.simmons@gmail.com>
3 # Contributor: teddy_beer_maniac <teddy_beer_maniac@wp.pl>
5 # Contributor: Paolo Bolzoni
10 pkgdesc='Doom 3 Engine. You need the retail .pk4 files to play.'
11 url='http://www.doom3.com/'
12 license=('custom:"DOOM 3"')
13 [ "$CARCH" = "i686" ] && depends=('libxext' 'libgl' 'alsa-lib>=1.0.6', 'openal')
14 [ "$CARCH" = "x86_64" ] && depends=('lib32-gcc-libs' 'lib32-libxdamage' 'lib32-libxext' 'lib32-libgl' 'lib32-alsa-lib>=1.0.6' 'lib32-libstdc++5' 'lib32-openal')
16 arch=('i686' 'x86_64')
18 source=('doom3.launcher' 'doom3-dedicated.launcher' 'doom3.desktop' \
19 'doom3.launcher64' 'doom3-dedicated.launcher64' 'doom3.png' \
20 "ftp://ftp.idsoftware.com/idstuff/source/idtech4-$pkgname-source-GPL.zip" \
21 "http://www.1337-server.net/doom3/$pkgname-linux-$pkgver.x86.run")
23 conflicts=('doom3-bin')
24 md5sums=('da5f33feaa929c2c588a5a773c777e0f'
25 '6bdef1e111e5f450bca3f1c043caf4a2'
26 'facb0291279621d997f9504924d7e9b1'
27 '7ccbdd8f07672c6c34b2fe1de131e57c'
28 'aca58ca787ac3c2c44eea46b08a5a3c1'
29 'f99eb141eecc4b9dd188d6819d741546'
30 '8ef8ab167d89ffa801e974722391d3c0'
31 '6325f0936f59420d33668754032141cb')
34 cd $srcdir/doom3.gpl/neo
36 # Build Binaries from Source
37 scons NOCURL=1 BUILD=release BUILD_GAMEPAK=1
41 # Make Installer Executable
42 chmod +x $srcdir/doom3-linux-$pkgver.x86.run
45 ./doom3-linux-$pkgver.x86.run --tar xf
51 # Create Destination Directories
52 install -d $pkgdir/opt/doom3/{base,d3xp,pb/htm}
54 # Install Game Binaries
55 install -m 755 $srcdir/doom3.gpl/neo/doom.x86 \
59 install -m 644 base/* $pkgdir/opt/doom3/base
60 install -m 644 d3xp/* $pkgdir/opt/doom3/d3xp
61 install -m 644 {CHANGES,README,version.info} $pkgdir/opt/doom3
62 install -m 644 $srcdir/doom3.gpl/neo/game01-base.pk4 \
63 $pkgdir/opt/doom3/base/game01.pk4
64 install -m 644 $srcdir/doom3.gpl/neo/game01-d3xp.pk4 \
65 $pkgdir/opt/doom3/d3xp/game01.pk4
67 if [ "$CARCH" == "i686" ]; then
68 # Install Game Launcher (Client)
69 install -D -m 755 $srcdir/doom3.launcher \
72 # Install Game Launcher (Server)
73 install -D -m 755 $srcdir/doom3-dedicated.launcher \
74 $pkgdir/usr/bin/doom3-dedicated
76 # Install Game Launcher (Client)
77 install -D -m 755 $srcdir/doom3.launcher64 \
80 # Install Game Launcher (Server)
81 install -D -m 755 $srcdir/doom3-dedicated.launcher64 \
82 $pkgdir/usr/bin/doom3-dedicated
85 # Install License (DOOM 3)
86 install -D -m 644 $srcdir/License.txt \
87 $pkgdir/usr/share/licenses/$pkgname/license.txt
90 install -D -m 644 $srcdir/doom3.png \
91 $pkgdir/usr/share/pixmaps/doom3.png
93 # Install Desktop File
94 install -D -m 644 $srcdir/doom3.desktop \
95 $pkgdir/usr/share/applications/doom3.desktop