1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-21 16:25:00 -05:00

Add panda3d

This commit is contained in:
Travis Burtrum 2017-07-01 12:29:36 -04:00
parent 4ebece8116
commit 1fb86e9e1d
2 changed files with 99 additions and 0 deletions

82
src/panda3d/PKGBUILD Executable file
View File

@ -0,0 +1,82 @@
# Maintainer: David Radford <croxis gmail com>
# Contributor: Robin Baumgartner <robin@baumgartners.ch>
# Contributor: Tucos <baspape@gmail.com>
pkgname=panda3d
pkgver=1.9.4
pkgrel=2
pkgdesc="A 3D game engine with Python bindings. SDK package. Optional dependencies you want to support need to be installed before panda3d."
url="http://www.panda3d.org"
arch=('i686' 'x86_64')
license=('BSD')
depends=('desktop-file-utils' 'shared-mime-info' 'xorg-server' 'libgl'
'openssl' 'libjpeg' 'libpng' 'libtiff' 'freetype2' 'gtk2'
'openal' 'libxrandr' 'libxcursor' 'libxxf86dga')
makedepends=('python2' 'bison' 'cmake')
# NOTICE: please read http://www.panda3d.org/manual/index.php/Dependencies for
# more information. Optdepends you want your package to support, need to be
# installed before compiletime! You don't need to change anything in the
# pkgbuild to get support; makepanda automatically detects available
# dependencies.
# PYTHON NOTICE: Replace all instances of python2 with python to compile with
# python 3 support instead
optdepends=(# Pretty much required
'xorg-server: X11 support'
'libgl: OpenGL support for X11'
# Recommended
'python2: python2 bindings'
'python: Experimental python 3 bindings'
'openssl: Provides some networking and encryption support'
'ffmpeg: Required to load and play video textures'
'libjpeg: Required to read and write jpeg images'
'libpng: Required to read and write png images'
'freetype2: Required to use dynamic fonts (such as TTF fonts)'
'gtk2: PStats analysis and debugging tool'
'libtiff: Required to read and write tiff images'
'nvidia-cg-toolkit: shader support'
'ode-compat: Support for the ODE physics engine'
'openal: OpenAL audio'
'zlib: Compression support'
'libxxf86dga: Relative mouse mode'
# Optional
'bullet: Support for the physics engine'
'eigen: Optimised linear algebra library'
'fmodex: FMod audio'
'libxcursor: Custom cursor icons'
'libxrandr: Resolution switching'
'librocket: Librocket GUI support'
'libsquish: DXT support (AUR)'
'artoolkit: library for augmented reality (AUR)'
'opencv: alternative to ffmpeg for video texture support'
'fcollada: used for dae2egg and for loading dae files directly into Panda (unavailable)'
'vrpn: support for virtual reality trackers (unavailable)'
# ARM stuff, not really applicable, stated for completeness
# NOTE: if you have libgles, you _must_ install libegl for this package to compile
'libgles: OpenGL ES support'
'libegl: GLX for OpenGL ES'
)
install='panda3d.install'
source=("$url/download/panda3d-$pkgver/panda3d-$pkgver.tar.gz"
'panda3d.install')
JOBS=$(nproc)
build() {
cd "$srcdir/panda3d-$pkgver"
LD_LIBRARY_PATH=/usr/lib/openssl-1.0-compat/
# disable broken extensions
python2 makepanda/makepanda.py --everything --no-opencv --no-opencv --no-maya2012 --no-fmodex --no-gles --no-gles2 --no-openssl ${PANDAFLAGS} --threads ${BUILD_THREADS:-$JOBS}
}
package() {
cd "$srcdir/panda3d-$pkgver"
python2 makepanda/installpanda.py --prefix=/usr --destdir="$pkgdir"
install -D -m644 "$srcdir/panda3d-$pkgver/doc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
md5sums=('7490512af90e003228fb8fb5e89a2371'
'057269173f3c1987953302519bc744fa')

17
src/panda3d/panda3d.install Executable file
View File

@ -0,0 +1,17 @@
post_install() {
update-mime-database usr/share/mime
update-desktop-database -q
ldconfig
}
post_upgrade() {
update-mime-database usr/share/mime
update-desktop-database -q
}
post_remove() {
update-mime-database usr/share/mime
update-desktop-database -q
}
# vim:set ts=2 sw=2 et: