1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
3 # Contributor: fana-m <geminin@gmx.net>
4 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
5 # Contributor: Manuel Gaul <inkaine@hotmail.com>
9 pkgdesc="Small, efficient and feature rich GUI for C++ and OpenGL"
10 url="http://gigi.sourceforge.net"
11 arch=('x86_64' 'i686')
13 depends=('boost' 'mesa' 'libpng' 'libjpeg' 'libtiff' 'freetype2' 'ogre' 'sdl' 'ois' 'python')
14 makedepends=('subversion' 'cmake' 'setconf' 'doxygen')
15 conflicts=('gigi-svn' 'mesa-full')
20 msg2 "Fetching files..."
21 if [ -d gigi/.svn ]; then
22 (cd gigi && svn up -r 1074)
24 svn co https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG/ \
25 --config-dir ./ -r 1074 gigi
29 svn export gigi gigi-build
33 setconf cmake/GiGiOgre.pc.in prefix /usr
34 setconf cmake/GiGi.pc.in prefix /usr
35 setconf cmake/GiGiSDL.pc.in prefix /usr
37 -D CMAKE_INSTALL_PREFIX="$pkgdir"/usr \
38 -D BUILD_TUTORIALS=OFF \
39 -D CPACK_GENERATOR=GiGiDevel \
40 -D CMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
43 msg2 "Building documentation..."
53 cd "$srcdir/gigi-build"
55 msg2 "Packaging files..."
58 msg2 "Fixing documentation..."
59 mkdir -p "$pkgdir/usr/share/doc"
60 mv "$pkgdir/usr/doc" "$pkgdir/usr/share/doc/$pkgname"
62 for f in `find "$pkgdir/usr/share/doc" -name "dir_*.html"`; do
63 sed -i "s:$srcdir:/:g" "$f"
66 msg2 "Packaging license..."
67 install -Dm 644 COPYING \
68 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
71 # vim:set ts=2 sw=2 et: