updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / prey / PKGBUILD
blob7b83be8d6352eb648336fd4a11323b17b8755295
1 # Contributor: Slash <demodevil5 [at] yahoo [dot] com>
3 pkgname=prey
4 pkgver=02192009
5 pkgrel=1
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."
7 arch=('i686' 'x86_64')
8 url="http://icculus.org/prey/"
9 license=('GPL')
10 if [ "$CARCH" = "x86_64" ]; then
11     depends=('lib32-libstdc++5' 'lib32-libxext')
12 else
13     depends=('libstdc++5' 'libxext')
15 makedepends=('unzip')
16 install=prey.install
17 source=("prey.desktop" "prey.launcher" \
18 "http://icculus.org/prey/downloads/$pkgname-installer-$pkgver.bin")
19 md5sums=('e0fc6542975fd67f2cb43a2a19f2e605'
20          '23e6e301fa851b58b6d4b1a5f7eb3b5f'
21          'f2d8ec21b5d082b516774f62a8bb6e97')
23 build() {
24   # Extract Files
25   unzip $srcdir/$pkgname-installer-$pkgver.bin && true
27   # Create Destination Directory
28   install -d $pkgdir/opt/prey/
30   # Install Game Files
31   cp -r $srcdir/data/prey-linux-x86/* \
32     $pkgdir/opt/prey/
34   # Install Data Files
35   cp -r $srcdir/data/prey-linux-data/* \
36     $pkgdir/opt/prey/
38   # Install Punkbuster Files
39   cp -r $srcdir/data/punkbuster-linux-x86/* \
40     $pkgdir/opt/prey/
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 \
60     $pkgdir/usr/bin/prey