1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
6 pkgdesc="Prey is a first person shooter based on the id Tech 4 engine using portals and variable gravity. You need the retail game files to play."
8 url="http://icculus.org/prey/"
10 if [ "$CARCH" = "x86_64" ]; then
11 depends=('lib32-libstdc++5' 'lib32-libxext')
13 depends=('libstdc++5' 'libxext')
17 source=("prey.desktop" "prey.launcher" \
18 "http://icculus.org/prey/downloads/$pkgname-installer-$pkgver.bin")
19 md5sums=('e0fc6542975fd67f2cb43a2a19f2e605'
20 '23e6e301fa851b58b6d4b1a5f7eb3b5f'
21 'f2d8ec21b5d082b516774f62a8bb6e97')
25 unzip $srcdir/$pkgname-installer-$pkgver.bin && true
27 # Create Destination Directory
28 install -d $pkgdir/opt/prey/
31 cp -r $srcdir/data/prey-linux-x86/* \
35 cp -r $srcdir/data/prey-linux-data/* \
38 # Install Punkbuster Files
39 cp -r $srcdir/data/punkbuster-linux-x86/* \
42 # Install Default Config
43 cp $srcdir/data/configs/english.cfg \
44 $pkgdir/opt/prey/base/default.cfg
46 # Install License (Prey)
47 install -D -m 0644 $srcdir/data/prey_license.txt \
48 $pkgdir/usr/share/licenses/$pkgname/prey_license.txt
50 # Install License (Punkbuster)
51 install -D -m 0644 $srcdir/data/punkbuster_license.txt \
52 $pkgdir/usr/share/licenses/$pkgname/punkbuster_license.txt
54 # Install Desktop Shortcut
55 install -D -m 0644 $srcdir/prey.desktop \
56 $pkgdir/usr/share/applications/prey.desktop
58 # Install Client Launcher
59 install -D -m 0755 $srcdir/prey.launcher \