summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: efe5b94f585af76eff8d30441f84d4fe0310a62a (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
37
38
39
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>

pkgname=caelum-git
pkgver=0.6.3.r49.g4bd1b05
pkgrel=1
pkgdesc="Library for OGRE targeted at helping to create nice-looking atmospheric effects."
arch=('i686' 'x86_64')
url="https://ogrecave.github.io/ogre-caelum/"
depends=('ogre')
makedepends=('cmake' 'git')
provides=('caelum')
conflicts=('caelum')
license=('LGPL')
source=("git+https://github.com/OGRECave/ogre-caelum.git")
sha512sums=('SKIP')

pkgver() {
  cd ${srcdir}/ogre-caelum
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

  cmake .. \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release

  make
}

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