updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / seventhsense / PKGBUILD
blob58b11fba866bc4736587b12ef0448648670791c3
1 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>\r
2 \r
3 pkgname=seventhsense\r
4 pkgver=1.7.4\r
5 pkgrel=1\r
6 pkgdesc="Lone wolf book player"\r
7 arch=('i686' 'x86_64')\r
8 url='http://www.projectaon.org/staff/david/download.php'\r
9 license=('custom: "limited"')\r
10 depends=('sdl' 'curl' 'sdl_ttf' 'sdl_image' 'physfs')\r
11 source=('http://www.projectaon.org/staff/david/click/click.php?id=4' 'seventhsense.desktop' 'seventhsense.launcher')\r
12 md5sums=('21ecf799e33e83cac58788a5165a94a4'\r
13          '6f144bfbf5110f5a237e6817d2972f47'\r
14          'bd6ede2705f570a7c6287de85dd1e0a3')\r
17 build() {\r
18     cd $srcdir || return 1\r
19 # Create Destination Directory\r
20     install -d $pkgdir/opt/SeventhSense || return 1\r
22 # Extract Game \r
23     unzip -o $srcdir/click.php?id=4 || return 1\r
24 cd SeventhSense-$pkgver\r
25   make || return 1\r
26 rm -r VisualStudio\r
27 rm -r src\r
28 # Install the data\r
29     cp -r $srcdir/SeventhSense-$pkgver/* $pkgdir/opt/SeventhSense || return 1\r
32 # Install Icon\r
33     install -D -m 644 $srcdir/SeventhSense-$pkgver/data/icons/wm.png \\r
34         $pkgdir/usr/share/pixmaps/seventhsense.png || return 1\r
37 # Install Launcher\r
38     install -D -m 644 $srcdir/seventhsense.desktop \\r
39         $pkgdir/usr/share/applications/seventhsense.desktop || return 1\r
42 # Install Game Launcher\r
43     install -D -m 755 $srcdir/seventhsense.launcher \\r
44         $pkgdir/usr/bin/seventhsense || return 1\r