desktop/openscenegraph/PKGBUILD
2016-05-05 18:45:05 +01:00

45 lines
1.1 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=openscenegraph
_pkgname=OpenSceneGraph
pkgver=3.4.0
pkgrel=1
pkgdesc="FOSS high performance real-time graphics toolkit."
arch=('x86_64')
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver' 'qt' 'ffmpeg' 'mesa' 'gdal')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt')
categories=('games')
source=(http://trac.openscenegraph.org/downloads/developer_releases/${_pkgname}-${pkgver}.zip)
md5sums=('a5e762c64373a46932e444f6f7332496')
build() {
cd $srcdir/$_pkgname-$pkgver
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DFFMPEG_LIBAVCODEC_INCLUDE_DIRS=Off \
..
make
}
package() {
cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=$pkgdir install
# Fix installation directory.
mv $pkgdir/usr/lib64 $pkgdir/usr/lib
# License.
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
}