updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / ayim / PKGBUILD
blobf0ba0516c40bee3c17384652fd1dd728f9d4172e
1 # Contributor: Kevin Whitaker <eyecreate at gmail dot com>
3 pkgname=ayim
4 pkgver=1.1.1
5 pkgrel=1
6 pkgdesc="Platform Puzzle game"
7 arch=('x86_64' 'i686')
8 conflicts=('ayim-demo')
9 url='http://www.andyetitmoves.net/index.php'
10 license=('custom: "commercial"')
11 depends=('sdl' 'sdl_image' 'libtheora' 'libxft' 'mesa' 'libvorbis')
12 [ $CARCH == x86_64 ] && source=(AndYetItMoves-${pkgver}_x86_64.tar.gz ayim.desktop)
13 [ $CARCH == i686 ] && source=(AndYetItMoves-${pkgver}_i386.tar.gz ayim.desktop)
15 [ $CARCH == x86_64 ] && md5sums=('982998a3fa980e920d1c58a61a03439a' '3a147d6a01c3701d5f8229a0d79c1303')
16 [ $CARCH == i686 ] && md5sums=('417b341664dc64f392c91e7351e97d5e' '3a147d6a01c3701d5f8229a0d79c1303')
18 build() {
19     cd $srcdir || return 1
21 # Create Destination Directory
22     install -d $pkgdir/opt/AndYetItMoves || return 1
24 # Extract Game 
25    [ $CARCH == x86_64 ] && tar zxfv $srcdir/AndYetItMoves-${pkgver}_x86_64.tar.gz 
26   [ $CARCH == i686 ] && tar zxfv $srcdir/AndYetItMoves-${pkgver}_i386.tar.gz 
28 # Install the data
29     cp -r $srcdir/AndYetItMoves/* $pkgdir/opt/AndYetItMoves || return 1
32 # Install Icon
33     install -D -m 644 $srcdir/AndYetItMoves/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