2023-05-23 12:26:55 +00:00

44 lines
942 B
Bash

# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
pkgname=ogre-caelum-git
pkgver=0.6.4.4bd1b05
pkgrel=1
pkgdesc="Library for OGRE targeted at helping to create nice-looking atmospheric effects."
arch=('i686' 'amd64')
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
_ver=$(grep -oP ' VERSION ([0-9]\.[0-9]\.[0-9])' "CMakeLists.txt" | awk '{print $2;}')
_gitcommit=$(git rev-parse --short HEAD)
echo $_ver.$_gitcommit
}
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
make DESTDIR=${pkgdir} install
}