1 # Contributor: Nuno Aniceto "quarkup" <nuno.aja@gmail.com>
2 # Maintainer: Nuno Aniceto "quarkup" <nuno.aja@gmail.com>
4 pkgname='octaga-player'
9 pkgdesc="The World's best 3D player for VRML and X3D"
10 arch=('i686' 'x86_64' 'any')
11 url='http://www.octaga.com'
12 depends=('openal' 'gtk2')
13 [[ "${CARCH}" = "i686" ]] && depends=("${depends[@]}" 'libjpeg6' 'libpng12')
14 [[ "${CARCH}" = "x86_64" ]] && depends=("${depends[@]}" 'lib32-libjpeg6' 'lib32-libpng12')
16 install="${pkgname}.install"
17 source=("http://www.octaga.com/freedownloads/OctagaPlayer/linux/${_ver}/${_name}.${_ver}.tar.gz"
18 "http://www.octaga.com/freedownloads/OctagaPlayer/current/license.pdf")
19 md5sums=('70c3fc43aff220ad0f4fee62e9b68a93' 'fb429a4954bec9d91ff13cfcdd4ae4fa')
23 cd "${srcdir}/${_name}.${_ver}";
25 mv "usr/" "${pkgdir}/";
27 msg2 "Updating mozilla/firefox plugins...";
29 [[ -d "/usr/lib/mozilla/plugins/" ]] && ln -sf '/usr/lib/mozilla/plugins/npOctaga.so' "${pkgdir}/usr/lib/octagaplayer/npOctaga.so";
30 [[ -d "/usr/lib/firefox/plugins/" ]] && ln -sf '/usr/lib/firefox/plugins/npOctaga.so' "${pkgdir}/usr/lib/octagaplayer/npOctaga.so";
32 install -Dm644 "${srcdir}/license.pdf" \
33 "${pkgdir}/usr/share/licenses/${pkgname}/license.pdf";