updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ayim-demo / PKGBUILD
blob9479b48a623ffc8545a8a7299c5e6ef2f3c38cfa
1 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>
3 pkgname=ayim-demo
4 pkgver=1.1.1
5 pkgrel=1
6 pkgdesc="Platform Puzzle game"
7 arch=('x86_64' 'i686')
8 conflicts=('ayim')
9 url='http://www.andyetitmoves.net/index.php?content=demo'
10 license=('custom: "commercial"')
11 depends=('sdl' 'sdl_image' 'libtheora' 'libxft' 'mesa' 'libvorbis')
12 [ $CARCH == x86_64 ] && source=(http://www.andyetitmoves.net/demo/AndYetItMovesDemo-${pkgver}_x86_64.tar.gz ayim.desktop)
13 [ $CARCH == i686 ] && source=(http://www.andyetitmoves.net/demo/AndYetItMovesDemo-${pkgver}_i386.tar.gz ayim.desktop)
15 [ $CARCH == x86_64 ] && md5sums=('8b673f0b4c33cbf414eb960a57aeea4d' '0052704fea1c5d830e45bfaa9c23274d')
16 [ $CARCH == i686 ] && md5sums=('d08db00390f1496b961d53a3e4c7270b' '0052704fea1c5d830e45bfaa9c23274d')
18 build() {
19     cd $srcdir || return 1
21 # Create Destination Directory
22     install -d $pkgdir/opt/AndYetItMovesDemo || return 1
24 # Extract Game 
25    [ $CARCH == x86_64 ] && tar zxfv $srcdir/AndYetItMovesDemo-${pkgver}_x86_64.tar.gz 
26   [ $CARCH == i686 ] && tar zxfv $srcdir/AndYetItMovesDemo-${pkgver}_i386.tar.gz 
28 # Install the data
29     cp -r $srcdir/AndYetItMovesDemo/* $pkgdir/opt/AndYetItMovesDemo || return 1
32 # Install Icon
33     install -D -m 644 $srcdir/AndYetItMovesDemo/NandIcon/ayim.jpg \
34         $pkgdir/usr/share/pixmaps/ayim.jpg || return 1
37 # Install Launcher
38     install -D -m 644 $srcdir/ayim.desktop \
39         $pkgdir/usr/share/applications/ayim.desktop || return 1