updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / oceanix / PKGBUILD
bloba76927688847e35763604efa3f97277dd987e877
1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=oceanix
4 pkgver=none
5 pkgrel=4
6 pkgdesc="Match-3 Game"
7 [ "$CARCH" = "i686"   ] && ARCH=x86
8 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
9 arch=('i686' 'x86_64')
10 url="http://www.bigfishgames.com/download-games/3180/oceanix/index.html" 
11 license="free"
12 depends=('openal')
13 makedepends=('make')
14 source=(http://www.dl.nalty.ru/OceaniX.zip  oceanix.desktop)
15 md5sums=('f3b806c451067b0e3c5273702db6b78b' '19d3791d70a4a55f09214a98ea4bc7e8')
17 build() { 
18         cd ${srcdir}/OceaniX 
19         mkdir -p ${pkgdir}/usr/bin
20         mkdir -p ${pkgdir}/usr/share/{OceaniX,applications}
21         if [ "$CARCH" == "i686" ]; then
22             echo "cd '/usr/share/OceaniX/' && ./OceaniX.x86" > ${pkgdir}/usr/bin/oceanix.sh
23             cp -R OceaniX.app ${pkgdir}/usr/share/OceaniX
24             install -m755 OceaniX.x86 ${pkgdir}/usr/share/OceaniX
25         else 
26             echo "cd '/usr/share/OceaniX/' && ./OceaniX.x86_64" > ${pkgdir}/usr/bin/oceanix.sh
27             cp -R OceaniX.app ${pkgdir}/usr/share/OceaniX
28             install -m755 OceaniX.x86_64 ${pkgdir}/usr/share/OceaniX
29         fi
30         chmod 755 ${pkgdir}/usr/bin/oceanix.sh 
31         install ${srcdir}/oceanix.desktop ${pkgdir}/usr/share/applications