summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b3ae15a7fe851945385d6b289c97160395a1417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=ogre-pagedgeometry-git
pkgver=1.1.3
pkgrel=5
pkgdesc="Paged Geometry plugin for OGRE for fast rendering of trees and grass."
arch=('i686' 'x86_64')
url="http://code.google.com/p/ogre-paged"
license=('MIT')
makedepends=('ogre' 'boost' 'cmake' 'git')
provides=('ogre-pagedgeometry')
source=(git+https://github.com/RigsOfRods/ogre-pagedgeometry)
sha512sums=('SKIP')

build() {
  cd $srcdir/ogre-pagedgeometry

  # get a clean build dir
  [[ -d build ]] && rm -rf build
  mkdir build
  cd build

  cmake .. \
    -DPAGEDGEOMETRY_BUILD_SAMPLES=0 \
    -DCMAKE_INSTALL_PREFIX=/usr 
  make  
}


package() {
  cd /$srcdir/ogre-pagedgeometry/build
  make DESTDIR="$pkgdir/" install 
  mkdir $pkgdir/usr/doc/ogre-pagedgeometry
  mv  $pkgdir/usr/doc/*.txt $pkgdir/usr/doc/ogre-pagedgeometry
}