blob: 104863ea6cf4beee3de2d8a7bfe82ee8a1391d65 (
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
40
41
42
43
44
45
46
47
48
49
50
|
# $Id: PKGBUILD 226145 2017-04-28 06:17:53Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl>
pkgname=cegui
pkgver=0.8.7
_tag=0-8-7
pkgrel=8
pkgdesc="A free library providing windowing and widgets for graphics APIs/engines"
arch=('i686' 'x86_64')
url="http://cegui.org.uk"
license=("MIT")
depends=('pcre' 'glew' 'expat' 'freetype2' 'libxml2' 'devil' 'freeglut' 'lua51' 'silly')
makedepends=('cmake' 'python2' 'doxygen' 'ogre' 'gtk2' 'boost' 'graphviz' 'irrlicht' 'glm' 'mesa' 'tolua++' 'mercurial' 'ois')
optdepends=('ogre: ogre module'
'python2: python bindings'
'ois: running samples'
'gtk2: gtk2 module'
'irrlicht: irrlicht module')
source=("hg+https://bitbucket.org/cegui/cegui#tag=v${_tag}")
md5sums=('SKIP')
build() {
cd "$srcdir/cegui"
sed -i "s/lib64/lib/g" CMakeLists.txt
[[ -d build ]] && rm -r build
mkdir build && cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCEGUI_LIB_INSTALL_DIR=lib \
-DCEGUI_BUILD_PYTHON_MODULES=OFF \
-DCEGUI_BUILD_PYTHON_MODULES=ON \
-DPYTHON_EXECUTABLE=/usr/bin/python2
make
make html
}
package() {
cd "$srcdir/cegui"/build
make DESTDIR="${pkgdir}" install
install -Dm644 ../COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|