desktop/cegui-0.8/PKGBUILD
2016-03-13 14:14:58 +01:00

49 lines
1.3 KiB
Bash

pkgname=cegui-0.8
pkgver=0.8.5
_ver=0-8-5
pkgrel=1
pkgdesc="A free library providing windowing and widgets for graphics APIs/engines"
arch=('x86_64')
url="http://crayzedsgui.sourceforge.net"
license=("MIT")
depends=('pcre' 'glew' 'expat' 'freetype2' 'libxml2' 'devil' 'freeglut' 'lua' 'silly' 'glfw2')
makedepends=('cmake' 'python2' 'doxygen' 'ogre' 'boost' 'graphviz' 'irrlicht' 'mesa' 'mercurial' 'toluapp')
optdepends=("python2: python bindings"
"ogre: ogre module"
"gtk2: gtk2 module"
"irrlicht: irrlicht module")
provides=('cegui')
conflicts=('cegui')
replaces=('cegui')
source=("hg+https://bitbucket.org/cegui/cegui#tag=v$_ver"
"freetype.patch")
sha1sums=('SKIP'
'01c7098184036981ec97d42757341dbd2e4aab80')
build() {
cd "$srcdir/cegui"
# patch -Np1 < "$srcdir/freetype.patch"
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 # currently broken :(
# -PYTHON_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"
}