summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSlashbunny2011-12-05 19:42:21 -0500
committerSlashbunny2011-12-05 19:42:21 -0500
commit1177a74cc7f21262574b8775a7443d156d38c380 (patch)
tree2c0278de10cbe9f372c3ba18ab846b5811617af5 /PKGBUILD
downloadaur-1177a74cc7f21262574b8775a7443d156d38c380.tar.gz
Renamed doom3 to doom3-bin; Binaries of doom3 from idsoftware
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD97
1 files changed, 97 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..6b24d25118a7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,97 @@
+# Contributor: Slash <demodevil5 [at] yahoo [dot] com>
+# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
+# Contributor: teddy_beer_maniac <teddy_beer_maniac@wp.pl>
+# Contributor: Babets
+
+pkgname=doom3-bin
+pkgver=1.3.1.1304
+pkgrel=1
+pkgdesc='The stock Doom 3 binaries. Punkbuster compatible. You need the retail .pk4 files to play.'
+url='http://www.doom3.com/'
+license=('custom:"DOOM 3"' 'custom:"PunkBuster"')
+[ "$CARCH" = "i686" ] && depends=('libxext' 'libgl' 'alsa-lib>=1.0.6')
+[ "$CARCH" = "x86_64" ] && depends=('lib32-gcc-libs' 'lib32-libxdamage' 'lib32-libxext' 'lib32-libgl' 'lib32-alsa-lib>=1.0.6' 'lib32-libstdc++5' 'lib32-openal')
+arch=('i686' 'x86_64')
+install=doom3.install
+source=('doom3.launcher' 'doom3-dedicated.launcher' 'doom3.desktop' \
+'doom3.launcher64' 'doom3-dedicated.launcher64' 'doom3.png' \
+"http://www.1337-server.net/doom3/doom3-linux-$pkgver.x86.run")
+provides=('doom3')
+conflicts=('doom3')
+md5sums=('da5f33feaa929c2c588a5a773c777e0f'
+ '6bdef1e111e5f450bca3f1c043caf4a2'
+ 'facb0291279621d997f9504924d7e9b1'
+ '7ccbdd8f07672c6c34b2fe1de131e57c'
+ 'aca58ca787ac3c2c44eea46b08a5a3c1'
+ 'f99eb141eecc4b9dd188d6819d741546'
+ '6325f0936f59420d33668754032141cb')
+
+build() {
+ cd $srcdir
+
+ # Make Installer Executable
+ chmod +x $srcdir/doom3-linux-$pkgver.x86.run
+
+ # Extract Game Files
+ ./doom3-linux-$pkgver.x86.run --tar xf
+}
+
+package() {
+ # Create Destination Directories
+ install -d $pkgdir/opt/doom3/{base,d3xp,pb/htm}
+
+ # Install Game Files
+ install -m 644 base/* $pkgdir/opt/doom3/base
+ install -m 644 d3xp/* $pkgdir/opt/doom3/d3xp
+ install -m 644 pb/htm/* $pkgdir/opt/doom3/pb/htm
+ install -m 644 {CHANGES,README,version.info} $pkgdir/opt/doom3
+
+ # Install Game Libraries
+ install -m 755 $srcdir/{libgcc_s.so.1,libstdc++.so.6} \
+ $pkgdir/opt/doom3
+
+ # Install Punkbuster Libraries
+ install -m 755 $srcdir/pb/{pbag.so,pbags.so,pbcl.so,pbcls.so,pbsv.so} \
+ $pkgdir/opt/doom3/pb
+
+ # Install Game Binaries
+ install -m 755 $srcdir/bin/Linux/x86/{doom.x86,doomded.x86} \
+ $pkgdir/opt/doom3
+
+ if [ "$CARCH" == "i686" ]; then
+ # Install Game Launcher (Client)
+ install -D -m 755 $srcdir/doom3.launcher \
+ $pkgdir/usr/bin/doom3
+
+ # Install Game Launcher (Server)
+ install -D -m 755 $srcdir/doom3-dedicated.launcher \
+ $pkgdir/usr/bin/doom3-dedicated
+ else
+ # Install Game Launcher (Client)
+ install -D -m 755 $srcdir/doom3.launcher64 \
+ $pkgdir/usr/bin/doom3
+
+ # Install Game Launcher (Server)
+ install -D -m 755 $srcdir/doom3-dedicated.launcher64 \
+ $pkgdir/usr/bin/doom3-dedicated
+ fi
+
+ # Install License (DOOM 3)
+ install -D -m 644 $srcdir/License.txt \
+ $pkgdir/usr/share/licenses/$pkgname/license.txt
+
+ # Install License (Punkbuster)
+ install -D -m 644 $srcdir/pb/PB_EULA.txt \
+ $pkgdir/usr/share/licenses/$pkgname/PB_EULA.txt
+
+ # Install Icon
+ install -D -m 644 $srcdir/doom3.png \
+ $pkgdir/usr/share/pixmaps/doom3.png
+
+ # Install Desktop File
+ install -D -m 644 $srcdir/doom3.desktop \
+ $pkgdir/usr/share/applications/doom3.desktop
+
+ # Remove Bundled Libraries (Doom3 will use the System Libraries)
+ rm $pkgdir/opt/doom3/{libgcc_s.so.1,libstdc++.so.6}
+}