summaryrefslogtreecommitdiff
path: root/community-staging/gigi
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-14 00:46:01 -0700
committerroot <root@rshg054.dnsready.net>2012-10-14 00:46:01 -0700
commit4eb56e1b3a80c84f2dddf2692310369dc9cbd31a (patch)
treeb31de2992989d616383f6552ba5d23b75701ef04 /community-staging/gigi
parent21c295a86a10a3cd59802b2cf3ab7c24ebf0c608 (diff)
Sun Oct 14 00:45:38 PDT 2012
Diffstat (limited to 'community-staging/gigi')
-rw-r--r--community-staging/gigi/PKGBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/community-staging/gigi/PKGBUILD b/community-staging/gigi/PKGBUILD
index 3a7c2321d..66e4f6b09 100644
--- a/community-staging/gigi/PKGBUILD
+++ b/community-staging/gigi/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 73559 2012-07-09 20:29:24Z arodseth $
+# $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>
@@ -7,15 +7,14 @@
pkgname=gigi
pkgver=0.8.0
-pkgrel=11
-_fixedrevision=1074
-pkgdesc="Small, efficient and feature rich GUI for C++ and OpenGL"
+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' 'mesa' 'libpng' 'libjpeg' 'libtiff' 'freetype2' 'ogre' 'sdl' 'ois' 'python')
-makedepends=('subversion' 'cmake' 'setconf' 'doxygen')
-conflicts=('gigi-svn' 'mesa-full')
+depends=('boost' 'libpng' 'libtiff' 'ogre' 'sdl' 'python')
+makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'mesa')
build() {
cd "$srcdir"
@@ -24,7 +23,8 @@ build() {
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://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
@@ -32,12 +32,6 @@ build() {
svn export gigi gigi-build
cd gigi-build
- msg2 "Patching..."
- sed -i 's/move_backward(/adobe::move_backward(/g' GG/adobe/vector.hpp
- sed -i 's/__GNUC_MINOR__ <= 6/__GNUC_MINOR__ <= 999/g' GG/adobe/cmath.hpp
- sed -i 's/insert(adobe/this->insert(adobe/g' GG/adobe/closed_hash.hpp
- sed -i 's:TIME_UTC:TIME_UTC_:' src/GUI.cpp
-
msg2 "Configuring..."
setconf cmake/GiGiOgre.pc.in prefix /usr
setconf cmake/GiGi.pc.in prefix /usr
@@ -72,6 +66,11 @@ package() {
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"