updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hacker-evolution-untold / PKGBUILD
blob03d3e97562227bbac45c8c1716743e50e8a3c61d
1 # Contributor: Artificial Intelligence <polarbeard@gmail.com>
3 pkgname=hacker-evolution-untold
4 pkgver=2.2
5 pkgrel=2 
6 pkgdesc="When the number of computers in existence and their processing capacity exceeds that of all mankind, a point of technological singularity is encountered. A massive economic and systematic crisis hits the entire world. Nobody knows the exact cause, and all solutions to fix it, are failing. We are about to lose our position as a dominant specie on the planet, in favor of something we have created... computers."
7 arch=('i686' 'x86_64')
8 url='http://www.exosyphen.com/page_hacker-evolution-untold.html'
9 license=('custom: "commercial"')
10 install=hackerevolution.install
11 depends=('mesa')
12 makedepends=('unzip')
13 source=('HackerEvolutionUntold-Linux-1.01.zip'
14 'HackerEvolution.png'
15 'hackerevolution.desktop'
16 'hackerevolution.launcher')
17 md5sums=('50ac5626b2cbbd27d013b0a024cab197' '89a061da1cb4ec4fd40e97b33b8229d3' '6fd04a141ee3f6d5e66e63bd64e576f3' '03a59b1edd42faaccf46aa92475802c4')
20 build() {
21     cd $srcdir || return 1
23 # Create Destination Directory
24     install -d $pkgdir/opt/HackerEvolution || return 1
26 # Extract Game & Install Data
27     mkdir $srcdir/hacker || return 1
28     unzip $srcdir/HackerEvolutionUntold-Linux-1.01.zip -d $srcdir/hacker || return 1
30 if [ "$CARCH" = "x86_64" ]; then
31     cd $srcdir/hacker || return 1
32     tar zxfv heuntold-linux-x86_64-retail-2.2.tar.gz || return 1
33     cp -r $srcdir/hacker/heuntold-linux-x86_64-retail-2.2/* $pkgdir/opt/HackerEvolution || return 1
34 else
35     cd $srcdir/hacker || return 1
36     tar zxfv heuntold-linux-x86-retail-2.2.tar.gz || return 1
37     cp -r $srcdir/hacker/flightzero-retail-linux-x86-2.2-rc2-28-g5f80fd0/* $pkgdir/opt/HackerEvolution || return 1
41 # Install Icon
42     install -D -m 644 $srcdir/HackerEvolution.png \
43         $pkgdir/usr/share/pixmaps/HackerEvolution.png || return 1
46 # Install Launcher
47     install -D -m 644 $srcdir/hackerevolution.desktop \
48         $pkgdir/usr/share/applications/hackerevolution.desktop || return 1
50 # Install Game Launcher
51     install -D -m 755 $srcdir/hackerevolution.launcher \
52         $pkgdir/usr/bin/hackerevolution || return 1