summaryrefslogtreecommitdiff
path: root/community-staging/gigi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community-staging/gigi/PKGBUILD')
-rw-r--r--community-staging/gigi/PKGBUILD79
1 files changed, 0 insertions, 79 deletions
diff --git a/community-staging/gigi/PKGBUILD b/community-staging/gigi/PKGBUILD
deleted file mode 100644
index 66e4f6b09..000000000
--- a/community-staging/gigi/PKGBUILD
+++ /dev/null
@@ -1,79 +0,0 @@
-# $Id: PKGBUILD 77673 2012-10-13 12:05:23Z lcarlier $
-# Maintainer: Alexander Rødseth <rodseth@gmail.com>
-# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
-# Contributor: fana-m <geminin@gmx.net>
-# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
-# Contributor: Manuel Gaul <inkaine@hotmail.com>
-
-pkgname=gigi
-pkgver=0.8.0
-pkgrel=14
-_fixedrevision=5208
-pkgdesc="Small, efficient and feature rich GUI for C++ and OpenGL (freeorion fork)"
-url="http://gigi.sourceforge.net/"
-arch=('x86_64' 'i686')
-license=('LGPL')
-depends=('boost' 'libpng' 'libtiff' 'ogre' 'sdl' 'python')
-makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'mesa')
-
-build() {
- cd "$srcdir"
-
- msg2 "Fetching files..."
- if [ -d gigi/.svn ]; then
- (cd gigi && svn up -r "$_fixedrevision")
- else
- #svn co https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG/ \
- svn co https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/GG/ \
- --config-dir ./ -r "$_fixedrevision" gigi
- fi
-
- rm -rf gigi-build
- svn export gigi gigi-build
- cd gigi-build
-
- msg2 "Configuring..."
- setconf cmake/GiGiOgre.pc.in prefix /usr
- setconf cmake/GiGi.pc.in prefix /usr
- setconf cmake/GiGiSDL.pc.in prefix /usr
- cmake \
- -D CMAKE_INSTALL_PREFIX="$pkgdir"/usr \
- -D BUILD_TUTORIALS=OFF \
- -D CPACK_GENERATOR=GiGiDevel \
- -D CMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
- .
-
- msg2 "Building documentation..."
- cd doc
- doxygen
- cd ..
-
- msg2 "Compiling..."
- make -j1
-}
-
-package() {
- cd "$srcdir/gigi-build"
-
- msg2 "Packaging files..."
- make install
-
- msg2 "Fixing documentation..."
- mkdir -p "$pkgdir/usr/share/doc"
- mv "$pkgdir/usr/doc" "$pkgdir/usr/share/doc/$pkgname"
-
- for f in `find "$pkgdir/usr/share/doc" -name "dir_*.html"`; do
- sed -i "s:$srcdir:/:g" "$f"
- done
-
- msg2 "Fixing python3 shebang..."
- for f in `find "$pkgdir/usr" -name "*.py"`; do
- sed -i "s:/env python:/python3:g" "$f"
- done
-
- msg2 "Packaging license..."
- install -Dm 644 COPYING \
- "$pkgdir/usr/share/licenses/$pkgname/COPYING"
-}
-
-# vim:set ts=2 sw=2 et: