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


Thursday, June 13th, 2013 at 12:12:45pm UTC 

  1. # Contributor: Sven-Hendrik Haase <[email protected]>
  2. # Maintainer: Jose Riha <jose1711 gmail com>
  4. pkgname=freegish-git
  5. _pkgname=gish
  6. pkgver=
  7. pkgrel=1
  8. pkgdesc="Free version of gish, a physics platformer"
  9. arch=('x86_64' 'i686')
  10. url=""
  11. license=('GPL')
  12. depends=('sdl' 'openal' 'libvorbis' 'libpng' 'libgl')
  13. makedepends=('git' 'cmake' 'mesa' 'imagemagick')
  14. provides=('freegish')
  15. conflicts=('freegish')
  16. install='freegish.install'
  18. source=("git://$_pkgname.git")
  19. md5sums=("SKIP")
  21. pkgver() {
  22.   cd "$srcdir/$_pkgname"
  23.   echo 1.60.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  24. }
  26. build() {
  27.   cd "$srcdir/$_pkgname"
  29.   # libmath fix...
  30.   sed '13i\find_library(M_LIB m)' -i CMakeLists.txt
  31.   sed '/${PNG_LIBRARIES}/i\    ${M_LIB}' -i CMakeLists.txt
  33.   sed '/DATAPATH/cadd_definitions(-DDATAPATH="/usr/share/freegish")' -i CMakeLists.txt
  34.   mkdir build && cd build
  35.   cmake ..
  36.   make
  37. }
  39. package() {
  40.   cd $srcdir/$_pkgname
  41.   install -Dm755 gish $pkgdir/usr/bin/freegish
  42.   install -dm755 $pkgdir/usr/share/freegish
  43.   mkdir -p $pkgdir/usr/share/{icons,applications}
  45.   # i don't know if there's a better way instead of using imagemagick... hmm
  46.   convert gish.bmp $pkgdir/usr/share/icons/freegish.png
  48.   # better to create seperated .desktop file, i do this only to make it easier for you to test.. :)
  49.   echo "[Desktop Entry]
  50. Encoding=UTF-8
  51. Name=FreeGish
  52. GenericName=Platform
  53. Comment=Gish isn't your average hero, in fact he's not your average anything… see Gish is a ball of tar. A Sunday stroll with his lady friend Brea goes awry when a shadowy figure emerges from an open man hole and pulls Brea into the ground below. Following Brea's calls for help Gish suddenly finds himself in the subterranean sewers of Dross, a long forgotten city filled with twisting corridors, evil traps and some of the most demented creatures imaginable.
  54. Exec=freegish
  55. Icon=freegish
  56. Type=Application
  57. Categories=Application;Game" > $pkgdir/usr/share/applications/freegish.desktop
  58.   # there's no texturesets or tile0{1,2,3} dir in git repo...
  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 not expire by default. 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