1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
6 pkgdesc="The stock Quake 3 Arena binaries. PunkBuster Compatible."
7 url="http://www.quake3arena.com/"
10 [ "${CARCH}" = "i686" ] && depends=('libgl' 'libxext')
11 [ "${CARCH}" = "x86_64" ] && depends=('lib32-libgl' 'lib32-libxext')
13 conflicts=('ioquake3' 'ioquake3-svn')
14 install=quake3.install
15 source=('quake3.install' 'quake3.desktop' 'quake3.launcher' 'quake3-smp.launcher' 'quake3ded.launcher' \
16 'http://media1.gamefront.com/moddb/2008/06/03/linuxq3apoint-1.32b-3.x86.run' \
17 'http://ftp.mancubus.net/pub/idgames/idstuff/quake3/quake3-1.32c.zip')
18 md5sums=('330f17b7664f8d0ff98ef173bd37fa33'
19 '4b3656ccf6b6f6967f53e0977d7e5c0a'
20 'b99913defd8c2c8b2f1b9006f5ddeb9f'
21 'a394dea42844aabfe188f56415950908'
22 '23710b0dc75e238f6858ad04c872fe91'
23 'c71fdddccb20e8fc393d846e9c61d685'
24 '5e55095e654732063621a2ffa95a2da3')
29 # Create Destination Package Directories
30 install -d $pkgdir/opt/quake3/{baseq3,missionpack}
32 # Extract Files from Installer
33 chmod +x $srcdir/linuxq3apoint-1.32b-3.x86.run
34 $srcdir/linuxq3apoint-1.32b-3.x86.run --tar xf
36 # Install BaseQ3 pk3 files
37 install -m 644 -t $pkgdir/opt/quake3/baseq3/ \
40 # Install Missionpack pk3 files
41 install -m 644 -t $pkgdir/opt/quake3/missionpack/ \
42 $srcdir/missionpack/*.pk3
45 chown -R root:root $srcdir/pb
46 mv $srcdir/pb $pkgdir/opt/quake3/
48 # Install 1.32c Binaries
49 install -m 755 -t $pkgdir/opt/quake3/ \
50 $srcdir/Quake\ III\ Arena\ 1.32c/linux/{q3ded,quake3-smp.x86,quake3.x86}
52 # Install Launcher (Client)
53 install -D -m 755 $srcdir/quake3.launcher \
54 $pkgdir/usr/bin/quake3
56 # Install Launcher (SMP Client)
57 install -D -m 755 $srcdir/quake3-smp.launcher \
58 $pkgdir/usr/bin/quake3-smp
60 # Install Launcher (Server)
61 install -D -m 755 $srcdir/quake3ded.launcher \
62 $pkgdir/usr/bin/quake3ded
64 # Install Desktop File
65 install -D -m 644 $srcdir/quake3.desktop \
66 $pkgdir/usr/share/applications/quake3.desktop
69 install -D -m 644 $srcdir/quake3.xpm \
70 $pkgdir/usr/share/pixmaps/quake3.xpm