PKGBUILD 1.16 KB
Newer Older
1 2 3 4 5 6 7
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>

pkgname=openscenegraph
_pkgname=OpenSceneGraph
8
pkgver=3.0.1
9 10 11 12 13
pkgrel=1
pkgdesc="FOSS high performance real-time graphics toolkit."
arch=('i686' 'x86_64')
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
14
depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
15 16 17
makedepends=('cmake' 'libvncserver')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib')
source=($url/downloads/stable_releases/$_pkgname-$pkgver/source/$_pkgname-$pkgver.zip)
18
md5sums=('c43a25d023e635c3566b2083d8e6d956')
19 20 21

build() {
  cd $srcdir/$_pkgname-$pkgver
22
  # Using “Release” instead of “RelWithDebInfo” on purpose, else there are problems.
23 24 25
  mkdir build && cd build
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
26
    -DCMAKE_BUILD_TYPE=Release \
27 28 29 30 31 32 33
    ..
  make
}

package() {
  cd $srcdir/$_pkgname-$pkgver/build
  make DESTDIR=$pkgdir install
34 35 36 37 38 39

  # Fix installation directory.
  [ -d $pkgdir/usr/lib64 ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib || true

  # License.
  install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
40
}