summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e06f8ce52087a760bdd424ff08e670706765c80 (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
34
35
36
pkgname=caelum-git
pkgver=r20.b33ce46
pkgrel=1
pkgdesc="Library for OGRE targeted at helping to create nice-looking atmospheric effects."
arch=('i686' 'x86_64')
url="http://www.ogre3d.org/tikiwiki/Caelum"
depends=('ogre' 'cegui' 'doxygen' 'boost')
makedepends=('cmake' 'git')
provides=('caelum')
conflicts=('caelum')
license=('LGPL')
source=("git+https://github.com/RigsOfRods/ogre-caelum")
sha512sums=('SKIP')

pkgver() {
  cd ${srcdir}/ogre-caelum
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${srcdir}/ogre-caelum

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

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr

  make
}

package() {
  cd ${srcdir}/ogre-caelum
  make DESTDIR=${pkgdir} install
}