diff options
author | root <root@rshg054.dnsready.net> | 2013-08-17 01:48:49 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-17 01:48:49 -0700 |
commit | 74952c750361d72d7b2d14179d4e88b6ce0a0c7e (patch) | |
tree | 881e3676cf3b53e4c90d21b37b94a008eda1832f /community/gigi | |
parent | 6a3f02abeeecab3efb4442e39e28e05897f25316 (diff) |
Sat Aug 17 01:47:45 PDT 2013
Diffstat (limited to 'community/gigi')
-rw-r--r-- | community/gigi/PKGBUILD | 47 |
1 files changed, 14 insertions, 33 deletions
diff --git a/community/gigi/PKGBUILD b/community/gigi/PKGBUILD index 95f839ee9..63772c53e 100644 --- a/community/gigi/PKGBUILD +++ b/community/gigi/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 94022 2013-07-13 12:32:08Z svenstaro $ +# $Id: PKGBUILD 95773 2013-08-16 17:52:10Z arodseth $ # Maintainer: Alexander Rødseth <rodseth@gmail.com> # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com> # Contributor: fana-m <geminin@gmx.net> @@ -7,16 +7,16 @@ pkgname=gigi pkgver=6142 -pkgrel=1 +pkgrel=2 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/' arch=('x86_64' 'i686') license=('LGPL') depends=('boost' 'libpng' 'libtiff' 'ogre' 'sdl' 'python') -makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'mesa-libgl') +makedepends=('subversion' 'cmake' 'setconf' 'doxygen' 'addinclude' '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=6142") # 5780 # 5407 +source=("$pkgname::svn+https://freeorion.svn.sourceforge.net/svnroot/freeorion/trunk/FreeOrion/GG/") sha256sums=('SKIP') pkgver() { @@ -25,56 +25,37 @@ pkgver() { svnversion | tr -d [A-z] } -build() { - cd "$srcdir/$pkgname" +prepare() { + cd "$pkgname" - msg2 'Configuring...' setconf cmake/GiGiOgre.pc.in prefix /usr setconf cmake/GiGi.pc.in prefix /usr setconf cmake/GiGiSDL.pc.in prefix /usr - # It would be better if CMAKE_INSTALL_PREFIX or the resulting Makefiles - # could be re-configured in the package() function, but this works too. + addinclude -n GG/adobe/once.hpp '#include <stdint.h>' +} + +build() { + cd "$pkgname" + cmake \ -D CMAKE_INSTALL_PREFIX="$srcdir/pkg/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/$pkgname" + cd "$pkgname" - msg2 'Packaging files...' make install - - 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" - - #for f in `find "$pkgdir/usr/share/doc" -name "dir_*.html"`; do - # sed -i "s:$srcdir:/:g" "$f" - #done - - msg2 'Python 3 fix...' + # python3 fix for f in `find "$pkgdir/usr" -name "*.py"`; do sed -i "s:/env python:/python3:g" "$f" done - - msg2 'Packaging license...' - install -Dm644 COPYING \ - "$pkgdir/usr/share/licenses/$pkgname/COPYING" } # vim:set ts=2 sw=2 et: |