1 # Maintainer: Hubert Grzeskowiak <arch at nemesis13 de>
2 # Contributor: Tucos <baspape@gmail.com>
7 pkgdesc="A 3D game engine with Python bindings. SDK package."
8 url="http://www.panda3d.org"
11 depends=('desktop-file-utils' 'shared-mime-info' 'xorg-server' 'libgl' 'libegl' 'libgles' 'python2' 'openssl' 'ffmpeg' 'libjpeg' 'libpng' 'libtiff' 'freetype2' 'gtk2' 'nvidia-cg-toolkit' 'openal' 'libxrandr' 'libxcursor' 'libxxf86dga' 'ode' 'bullet')
12 makedepends=('python2')
14 # NOTICE: please read http://www.panda3d.org/manual/index.php/Dependencies for more information
15 # optdepends you want your package to support, need to be installed during compiletime!
16 # you don't need to change anything in the pkgbuild to get support; makepanda automatically detects available dependencies
17 optdepends=('fmodex: FMod audio'
18 'libsquish: DXT support (AUR)'
19 'artoolkit: library for augmented reality (AUR)'
20 'opencv: alternative to ffmpeg for video texture support (Does not work, use -cvs)'
21 'fftw: Lossy animation compression in bam files (Does not work)'
22 'fcollada: used for dae2egg and for loading dae files directly into Panda (unavailable)'
23 'vrpn: support for virtual reality trackers (unavailable)'
26 install='panda3d.install'
27 source=("$url/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" 'v4l.patch' 'panda3d.install')
28 md5sums=('4278be15f8f0e40ba8a7d55742ef00ab' '598cf383dd9496c6091b64d7831750de' '781da785acb14d547624b505ef01e064')
31 cd "$srcdir/$pkgname-$pkgver"
33 # latest kernel removed v4l; this patch removes v4l1 support from panda
34 # the changes in the patch are equal to the relevant changes made in CVS
35 (cd panda/src/vision && patch -N <"$srcdir/v4l.patch")
37 python2 makepanda/makepanda.py --everything
41 cd "$srcdir/$pkgname-$pkgver"
42 python2 makepanda/installpanda.py --prefix=/usr --destdir="$pkgdir"
43 #rm "$pkgdir/usr/bin/bin2c" # uncomment if you get integrity error
44 install -D -m644 "$srcdir/$pkgname-$pkgver/doc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
46 if [ "$CARCH" == "x86_64" ]; then
47 mv "$pkgdir/usr/lib64/panda3d" "$pkgdir/usr/lib/"
48 rmdir "$pkgdir/usr/lib64"
49 sed -i 's/lib64/lib/' "$pkgdir/usr/lib/python2.7/site-packages/panda3d.pth"
50 sed -i 's/lib64/lib/' "$pkgdir/etc/ld.so.conf.d/panda3d.conf"