updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / panda3d-runtime / PKGBUILD
blob71ca2a08cd634e1cd9a083a4ffc85c7755cc8cbd
1 # Maintainer: Tucos <baspape@gmail.com>
2 # Contributor: Hubert Grzeskowiak <arch at nemesis13 dot de>
4 pkgname=panda3d-runtime
5 pkgver=1.0.3
6 pkgrel=2
7 pkgdesc='3D engine with Python bindings. Runtime and web plugin.'
8 url="http://www.panda3d.org"
9 depends=('openssl' 'shared-mime-info' 'desktop-file-utils')
10 makedepends=('python2' 'libpng' 'libjpeg' 'xulrunner')
11 source=("http://www.panda3d.org/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" 'panda3d-runtime.install')
12 arch=('i686' 'x86_64')
13 license=('BSD')
14 install='panda3d-runtime.install'
15 md5sums=('b6221c7ddff765a632a15a5d85c51013' '781da785acb14d547624b505ef01e064')
17 build() {
18   cd $srcdir/$pkgname-$pkgver
19   python2 makepanda/makepanda.py --everything --runtime --distributor cmu
22 package() {
23   cd $srcdir/$pkgname-$pkgver
24   python2 makepanda/installpanda.py --destdir=$pkgdir --runtime --outputdir=built_cmu_rt --prefix=/usr
25   install -D -m755 $srcdir/$pkgname-$pkgver/doc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
27   if [ "$CARCH" == "x86_64" ]; then
28     mv $pkgdir/usr/lib{64,}
30     rm $pkgdir/usr/lib/mozilla-firefox/plugins/nppanda3d.so $pkgdir/usr/lib/mozilla/plugins/nppanda3d.so $pkgdir/usr/lib/xulrunner-addons/plugins/nppanda3d.so
31     ln -s /usr/lib/nppanda3d.so $pkgdir/usr/lib/mozilla-firefox/plugins/nppanda3d.so
32     ln -s /usr/lib/nppanda3d.so $pkgdir/usr/lib/mozilla/plugins/nppanda3d.so
33     ln -s /usr/lib/nppanda3d.so $pkgdir/usr/lib/xulrunner-addons/plugins/nppanda3d.so
34   fi