updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / octaga-player / PKGBUILD
blob7f31fca6aedfaea8595ebc0e17f9d6122a94e032
1 # Contributor: Nuno Aniceto "quarkup" <nuno.aja@gmail.com>
2 # Maintainer: Nuno Aniceto "quarkup" <nuno.aja@gmail.com>
4 pkgname='octaga-player'
5 _name='octagaplayer'
6 pkgver='2.3.0'
7 _ver="${pkgver}.3rc1"
8 pkgrel='1'
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')
15 license=('custom')
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')
22 build() {
23         cd "${srcdir}/${_name}.${_ver}";
24         
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";