arch-ppa/src/panda3d/PKGBUILD

83 lines
3.6 KiB
Bash
Raw Permalink Normal View History

2017-07-01 12:29:36 -04:00
# Maintainer: David Radford <croxis gmail com>
# Contributor: Robin Baumgartner <robin@baumgartners.ch>
# Contributor: Tucos <baspape@gmail.com>
pkgname=panda3d
2019-07-27 10:40:51 -04:00
pkgver=1.10.3
2019-03-03 20:21:14 -05:00
pkgrel=1
2017-07-01 12:29:36 -04:00
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')
2019-03-03 20:21:14 -05:00
makedepends=('python' 'bison' 'cmake' 'flex')
2017-07-01 12:29:36 -04:00
# 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
2019-03-03 20:21:14 -05:00
'python: Python 3 bindings'
2017-07-01 12:29:36 -04:00
'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'
2019-03-03 20:21:14 -05:00
'libvorbis: Used to load .ogg files encoded with Vorbis.'
'openexp: OpenEXR image format support'
2017-07-01 12:29:36 -04:00
# Optional
2019-03-03 20:21:14 -05:00
'assimp: Open Asset Import'
'opus: Read .opus audio files'
2017-07-01 12:29:36 -04:00
'bullet: Support for the physics engine'
'eigen: Optimised linear algebra library'
'fmodex: FMod audio'
'libxcursor: Custom cursor icons'
'libxrandr: Resolution switching'
2019-03-03 20:21:14 -05:00
#'librocket: Librocket GUI support'
2017-07-01 12:29:36 -04:00
'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)'
2019-03-03 20:21:14 -05:00
'vrpn-git: support for virtual reality trackers.'
2017-07-01 12:29:36 -04:00
# 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'
2019-03-03 20:21:14 -05:00
source=("https://github.com/panda3d/panda3d/archive/v$pkgver.tar.gz"
2017-07-01 12:29:36 -04:00
'panda3d.install')
JOBS=$(nproc)
build() {
cd "$srcdir/panda3d-$pkgver"
2019-03-03 20:21:14 -05:00
python makepanda/makepanda.py --everything --no-opencv --no-opencv --no-maya2012 --no-fmodex --no-gles --no-gles2 --no-openssl --no-egl ${PANDAFLAGS} --threads ${BUILD_THREADS:-$JOBS}
2017-07-01 12:29:36 -04:00
}
package() {
cd "$srcdir/panda3d-$pkgver"
2019-07-27 10:40:51 -04:00
python makepanda/installpanda.py --prefix=/usr --destdir="$pkgdir"
2017-07-01 12:29:36 -04:00
install -D -m644 "$srcdir/panda3d-$pkgver/doc/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
2019-07-27 10:40:51 -04:00
sha256=('a8e438d4a13ac8c81b80d288326617b3'
'057269173f3c1987953302519bc744fa')
md5sums=('0fc0defbec60c794f07d76af6ab42d89'
2017-07-01 12:29:36 -04:00
'057269173f3c1987953302519bc744fa')