1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
7 [ "$CARCH" = "i686" ] && ARCH=x86
8 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
10 url="http://www.bigfishgames.com/download-games/3180/oceanix/index.html"
14 source=(http://www.dl.nalty.ru/OceaniX.zip oceanix.desktop)
15 md5sums=('f3b806c451067b0e3c5273702db6b78b' '19d3791d70a4a55f09214a98ea4bc7e8')
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
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
30 chmod 755 ${pkgdir}/usr/bin/oceanix.sh
31 install ${srcdir}/oceanix.desktop ${pkgdir}/usr/share/applications