blob: 2313709463a4cbdd366eaa68c8adff06d5d861ca (
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
|
pkgname=ogre-pagedgeometry-git
pkgver=1.1.3
pkgrel=3
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/PagedGeometry.git)
sha512sums=('SKIP')
build() {
cd $srcdir/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() {
install -Dm644 $srcdir/lib/libPagedGeometry.a $pkgdir/usr/lib/libPagedGeometry.a
mkdir $pkgdir/usr/include
cp -r $srcdir/PagedGeometry/include $pkgdir/usr/include/PagedGeometry
}
|