Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account


Friday, March 16th, 2012 at 9:56:00pm UTC 

  1. # Contributor: Sven-Hendrik Haase <[email protected]>
  2. # Maintainer: Jose Riha <jose1711 gmail com>
  4. pkgname=freegish-git
  5. pkgver=20120316
  6. pkgrel=1
  7. pkgdesc="Free version of gish, a physics platformer"
  8. arch=('x86_64' 'i686')
  9. url=""
  10. license=('GPL')
  11. depends=('sdl' 'openal' 'libvorbis' 'libpng' 'libgl')
  12. makedepends=('git' 'cmake' 'mesa')
  13. provides=('freegish')
  14. conflicts=('freegish')
  15. install='freegish.install'
  17. #_gitroot=""
  18. _gitroot=""
  19. _gitname="gish"
  21. build() {
  22.   cd "$srcdir"
  23.   msg "Connecting to GIT server...."
  24.   rm -r $_gitroot || true
  26.   git clone $_gitroot $_gitname
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting make..."
  31.   cd "$srcdir/$_gitname"
  33.   #sed '/DATAPATH/cadd_definitions(-DDATAPATH="/usr/share/freegish")' -i CMakeLists.txt
  34.         #cd $_gitname
  35.   mkdir build && cd build
  36.   cmake ..
  37.   sed -e '/PNG_LIBRARY:FILEPATH/s/' \
  38.       -e '/PNG_PNG_INCLUDE_DIR:PATH/s/include/include\/libpng12/' \
  39.       -e '/FIND_PACKAGE_MESSAGE_DETAILS_PNG:INTERNAL/s/libpng/libpng12/' \
  40.       -e '/FIND_PACKAGE_MESSAGE_DETAILS_PNG:INTERNAL/s/include/include\/libpng12/' \
  41.       -e 's/^\(CMAKE_EXE_LINKER_FLAGS:STRING\).*/\1='\'' '\''/' \
  42.       -e 's/^\(CMAKE_C_FLAGS:STRING\).*/\1=/' \
  43.       -e 's/^\(CMAKE_MODULE_LINKER_FLAGS:STRING\).*/\1='\'' '\''/' \
  44.       -e 's/^\(CMAKE_SHARED_LINKER_FLAGS:STRING\).*/\1='\'' '\''/' \
  45.       -i CMakeCache.txt
  46.     sed -i '/usr\/include\/AL/i  "\/usr\/include\/libpng12"' CMakeFiles/CMakeDirectoryInformation.cmake
  47.   touch CMakeCache.txt
  48. echo "In a new terminal window: Enter directory $srcdir/$_gitname/build and enter make command. After compiling, return back here and hit enter"; read
  49.   make || true
  50.   /usr/bin/gcc  -march=i686 -mtune=generic -O2 -pipe    -Wl,--hash-style=gnu -Wl,--as-needed CMakeFiles/gish.dir/audio/audio.c.o CMakeFiles/gish.dir/game/ai.c.o CMakeFiles/gish.dir/game/animation.c.o CMakeFiles/gish.dir/game/block.c.o CMakeFiles/gish.dir/game/boss.c.o CMakeFiles/gish.dir/game/config.c.o CMakeFiles/gish.dir/game/credits.c.o CMakeFiles/gish.dir/game/custom.c.o CMakeFiles/gish.dir/game/damage.c.o CMakeFiles/gish.dir/game/debug.c.o CMakeFiles/gish.dir/game/editor.c.o CMakeFiles/gish.dir/game/game.c.o CMakeFiles/gish.dir/game/gameaudio.c.o CMakeFiles/gish.dir/game/gamemenu.c.o CMakeFiles/gish.dir/game/gameobject.c.o CMakeFiles/gish.dir/game/gametexture.c.o CMakeFiles/gish.dir/game/high.c.o CMakeFiles/gish.dir/game/level.c.o CMakeFiles/gish.dir/game/lighting.c.o CMakeFiles/gish.dir/game/logic.c.o CMakeFiles/gish.dir/game/mainmenu.c.o CMakeFiles/gish.dir/game/mappack.c.o CMakeFiles/gish.dir/game/music.c.o CMakeFiles/gish.dir/game/objedit.c.o CMakeFiles/gish.dir/game/objfunc.c.o CMakeFiles/gish.dir/game/options.c.o CMakeFiles/gish.dir/game/physics.c.o CMakeFiles/gish.dir/game/player.c.o CMakeFiles/gish.dir/game/prerender.c.o CMakeFiles/gish.dir/game/random.c.o CMakeFiles/gish.dir/game/record.c.o CMakeFiles/gish.dir/game/render.c.o CMakeFiles/gish.dir/game/replay.c.o CMakeFiles/gish.dir/game/ropeedit.c.o CMakeFiles/gish.dir/game/setup.c.o CMakeFiles/gish.dir/game/socket.c.o CMakeFiles/gish.dir/game/sprite.c.o CMakeFiles/gish.dir/game/vsmode.c.o CMakeFiles/gish.dir/input/joystick.c.o CMakeFiles/gish.dir/input/keyboard.c.o CMakeFiles/gish.dir/input/mouse.c.o CMakeFiles/gish.dir/math/intersec.c.o CMakeFiles/gish.dir/math/vector.c.o CMakeFiles/gish.dir/menu/menu.c.o CMakeFiles/gish.dir/parser/parser.c.o CMakeFiles/gish.dir/physics/bond.c.o CMakeFiles/gish.dir/physics/object.c.o CMakeFiles/gish.dir/physics/particle.c.o CMakeFiles/gish.dir/sdl/endian.c.o CMakeFiles/gish.dir/sdl/event.c.o CMakeFiles/gish.dir/sdl/file.c.o CMakeFiles/gish.dir/sdl/video.c.o CMakeFiles/gish.dir/video/glfunc.c.o CMakeFiles/gish.dir/video/opengl.c.o CMakeFiles/gish.dir/video/text.c.o CMakeFiles/gish.dir/video/texture.c.o CMakeFiles/gish.dir/main.c.o  -o ../gish -rdynamic -Wl,-Bstatic -lSDLmain -Wl,-Bdynamic -lSDL -lpthread -lopenal -lGLU -lGL -lSM -lICE -lX11 -lXext -lvorbis -lvorbisfile -lpng12 -lz -lm
  51.   make
  52. }
  54. package() {
  55.   cd $srcdir/$_gitname
  57.   install -Dm755 gish $pkgdir/usr/bin/freegish
  58.   install -dm755 $pkgdir/usr/share/freegish
  59.   cp -r animation level music sound texture $pkgdir/usr/share/freegish
  60. }
  62. # vim: sw=2:ts=2 et:


Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)

Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus