diff options
author | croxis | 2015-06-17 12:20:06 -0700 |
---|---|---|
committer | croxis | 2015-06-17 12:20:06 -0700 |
commit | 7e975f6fcaabc4e3f1c566a1ed37263c00a39802 (patch) | |
tree | 357271e2c0bfd76c62502632b45aa41284b4e5ca | |
download | aur-7e975f6fcaabc4e3f1c566a1ed37263c00a39802.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 64 | ||||
-rwxr-xr-x | PKGBUILD | 78 | ||||
-rwxr-xr-x | panda3d.install | 17 |
3 files changed, 159 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..542eb61b8a4d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,64 @@ +pkgbase = panda3d + pkgdesc = A 3D game engine with Python bindings. SDK package. Optional dependencies you want to support need to be installed before panda3d. + pkgver = 1.9.0 + pkgrel = 3 + url = http://www.panda3d.org + install = panda3d.install + arch = i686 + arch = x86_64 + license = BSD + makedepends = python2 + makedepends = bison + makedepends = subversion + makedepends = cmake + depends = desktop-file-utils + depends = shared-mime-info + depends = xorg-server + depends = libgl + depends = openssl + depends = libjpeg + depends = libpng + depends = libtiff + depends = freetype2 + depends = gtk2 + depends = openal + depends = libxrandr + depends = libxcursor + depends = libxxf86dga + optdepends = xorg-server: X11 support + optdepends = libgl: OpenGL support for X11 + optdepends = python2: python2 bindings + optdepends = python: Experimental python 3 bindings + optdepends = openssl: Provides some networking and encryption support + optdepends = ffmpeg: Required to load and play video textures + optdepends = libjpeg: Required to read and write jpeg images + optdepends = libpng: Required to read and write png images + optdepends = freetype2: Required to use dynamic fonts (such as TTF fonts) + optdepends = gtk2: PStats analysis and debugging tool + optdepends = libtiff: Required to read and write tiff images + optdepends = nvidia-cg-toolkit: shader support + optdepends = ode-compat: Support for the ODE physics engine + optdepends = openal: OpenAL audio + optdepends = zlib: Compression support + optdepends = libxxf86dga: Relative mouse mode + optdepends = bullet: Support for the physics engine + optdepends = eigen: Optimised linear algebra library + optdepends = fmodex: FMod audio + optdepends = libxcursor: Custom cursor icons + optdepends = libxrandr: Resolution switching + optdepends = librocket: Librocket GUI support + optdepends = libsquish: DXT support (AUR) + optdepends = artoolkit: library for augmented reality (AUR) + optdepends = opencv: alternative to ffmpeg for video texture support + optdepends = fftw: Lossy animation compression in bam files (Does not work) + optdepends = fcollada: used for dae2egg and for loading dae files directly into Panda (unavailable) + optdepends = vrpn: support for virtual reality trackers (unavailable) + optdepends = libgles: OpenGL ES support + optdepends = libegl: GLX for OpenGL ES + source = http://www.panda3d.org/download/panda3d-1.9.0/panda3d-1.9.0.tar.gz + source = panda3d.install + md5sums = 3318f2ea070c46a93d736317f98f7da4 + md5sums = 057269173f3c1987953302519bc744fa + +pkgname = panda3d + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..15ab28c17a7f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,78 @@ +# Maintainer: David Radford <croxis gmail com> +# Contributor: Robin Baumgartner <robin@baumgartners.ch> +# Contributor: Tucos <baspape@gmail.com> + +pkgname=panda3d +pkgver=1.9.0 +pkgrel=3 +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' 'subversion' '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. +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' + 'fftw: Lossy animation compression in bam files (Does not work)' + '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') +md5sums=('3318f2ea070c46a93d736317f98f7da4' + '057269173f3c1987953302519bc744fa') +JOBS=$(nproc) + +build() { + cd "$srcdir/panda3d-$pkgver" + + # disable broken extensions + python2 makepanda/makepanda.py --everything --no-opencv --no-opencv --no-maya2012 --no-fmodex --no-gles --no-gles2 --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" + +} diff --git a/panda3d.install b/panda3d.install new file mode 100755 index 000000000000..7707c271b9c7 --- /dev/null +++ b/panda3d.install @@ -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: |