diff options
Diffstat (limited to 'community/gigi/PKGBUILD')
-rw-r--r-- | community/gigi/PKGBUILD | 51 |
1 files changed, 23 insertions, 28 deletions
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 <rodseth@gmail.com> # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: fana-m <geminin@gmx.net> @@ -6,9 +6,8 @@ # Contributor: Manuel Gaul <inkaine@hotmail.com> 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 |