updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / caelum-hg / PKGBUILD
blobc27615a21fe2c9aa86766056982039d5a1eac4d4
1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=caelum-hg
4 _pkgname=caelum
5 pkgver=8
6 pkgrel=2
7 pkgdesc="Library for Ogre targeted to help creating photorealistic atmospheric effects"
8 arch=('i686' 'x86_64')
9 url="http://www.ogre3d.org/tikiwiki/Caelum"
10 depends=('ogre' 'cegui-ogre' 'doxygen')
11 makedepends=('mercurial')
12 conflicts=('caelum')
13 provides=('caelum')
14 license=('LGPL')
16 _hgroot="https://caelum.googlecode.com/hg"
17 _hgrepo="caelum"
19 build() {
20  cd "$srcdir/$_hgrepo"
21  cmake -DCMAKE_INSTALL_PREFIX=/usr .
22  make
25 package() {
26  cd "$srcdir/$_hgrepo"
28  # Won't install unless this extists
29  [ ! -d doc ] && mkdir doc
30  [ ! -f doc/html ] && touch doc/html
32  make DESTDIR="$pkgdir" install
33  install -Dm 644 "$pkgdir/usr/doc/ReadMe.txt" "$pkgdir/usr/share/$_pkgname/ReadMe.txt"
34  rm -rf "$pkgdir/usr/doc"