From 10aa61ef39e662453e1d817046e359372fe3b326 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jul 2013 01:22:21 -0700 Subject: Tue Jul 9 01:22:19 PDT 2013 --- community/gigi/PKGBUILD | 51 ++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 28 deletions(-) (limited to 'community/gigi') diff --git a/community/gigi/PKGBUILD b/community/gigi/PKGBUILD index 0b73f0075..c9fff9a34 100644 --- a/community/gigi/PKGBUILD +++ b/community/gigi/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 90035 2013-05-06 19:37:22Z foutrelis $ +# $Id: PKGBUILD 93708 2013-07-08 14:58:25Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Sven-Hendrik Haase # Contributor: fana-m @@ -6,9 +6,8 @@ # Contributor: Manuel Gaul pkgname=gigi -pkgver=0.8.0 -pkgrel=20 -_fixedrevision=5780 #5407 +pkgver=6141 +pkgrel=1 pkgdesc='Small, efficient and feature rich GUI for OpenGL and C++ (freeorion fork)' #url='http://gigi.sourceforge.net/' url='http://freeorion.svn.sourceforge.net/viewvc/freeorion/trunk/FreeOrion/GG/' @@ -16,22 +15,18 @@ arch=('x86_64' 'i686') license=('LGPL') depends=('boost' 'libpng' 'libtiff' 'ogre' 'sdl' 'python') makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'mesa-libgl') +#https://gigi.svn.sourceforge.net/svnroot/gigi/trunk/GG/ +source=("$pkgname::svn+https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/GG/#revision=6141") # 5780 # 5407 +sha256sums=('SKIP') -build() { - cd "$srcdir" +pkgver() { + cd "$pkgname" - 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 + svnversion | tr -d [A-z] +} - rm -rf gigi-build - svn export gigi gigi-build - cd gigi-build +build() { + cd "$srcdir/$pkgname" msg2 'Configuring...' setconf cmake/GiGiOgre.pc.in prefix /usr @@ -46,17 +41,17 @@ build() { -D CMAKE_C_FLAGS_RELEASE='-DNDEBUG' \ . - msg2 'Building documentation...' - cd doc - doxygen - cd .. + #msg2 'Building documentation...' + #cd doc + #doxygen + #cd .. msg2 'Compiling...' make -j1 } package() { - cd "$srcdir/gigi-build" + cd "$srcdir/$pkgname" msg2 'Packaging files...' make install @@ -64,13 +59,13 @@ package() { msg2 'Moving files to the right location...' mv -v "$srcdir/pkg/usr" "$pkgdir/" - msg2 'Fixing documentation...' - mkdir -p "$pkgdir/usr/share/doc" - mv "$pkgdir/usr/doc" "$pkgdir/usr/share/doc/$pkgname" + #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 + #for f in `find "$pkgdir/usr/share/doc" -name "dir_*.html"`; do + # sed -i "s:$srcdir:/:g" "$f" + #done msg2 'Python 3 fix...' for f in `find "$pkgdir/usr" -name "*.py"`; do -- cgit v1.2.3-54-g00ecf