Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 12th, 2014  |  syntax: None  |  size: 1.64 KB  |  views: 219  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Cravix < dr dot neemous at gmail dot com >
  2. # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
  3. # Contributor: Jose Riha <jose1711 gmail com>
  4.  
  5. pkgname=freegish-git
  6. _pkgname=freegish
  7. pkgver=1.60.181.f53d915
  8. pkgrel=1
  9. pkgdesc="Free version of gish, a physics platformer"
  10. arch=('x86_64' 'i686')
  11. #url="http://github.com/FrozenCow/gish"
  12. url="http://github.com/freegish/freegish"
  13. license=('GPL')
  14. depends=('sdl' 'openal' 'libvorbis' 'libpng' 'libgl')
  15. makedepends=('git' 'cmake' 'mesa' 'imagemagick')
  16. provides=('freegish')
  17. conflicts=('freegish')
  18. install='freegish.install'
  19.  
  20. source=("git://github.com/${_pkgname}/${_pkgname}"
  21.         'freegish.desktop'
  22.         'libmath.patch')
  23.  
  24. md5sums=('SKIP'
  25.          '45a57af69e7e6becdac80ed85d87f871'
  26.          '92f82b888c2f3766af4e17684f84f04e')
  27.  
  28. pkgver() {
  29.   cd "$srcdir/$_pkgname"
  30.   echo 1.60.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  31. }
  32.  
  33. build() {
  34.   cd "$srcdir/$_pkgname"
  35.  
  36.   # libmath fix...
  37.   patch -p1 < ../libmath.patch
  38.   mkdir build && cd build
  39.   cmake ..
  40.   make
  41. }
  42.  
  43. package() {
  44.   cd $srcdir/$_pkgname
  45.   install -Dm755 ${_pkgname} $pkgdir/usr/bin/${_pkgname}
  46.   install -dm755 $pkgdir/usr/share/${_pkgname}
  47.   mkdir -p $pkgdir/usr/share/{icons,applications}
  48.  
  49.   # i don't know if there's a better way instead of using imagemagick... hmm
  50.   convert ${_pkgname}.bmp $pkgdir/usr/share/icons/${_pkgname}.png
  51.  
  52.   install -m644 ${srcdir}/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop
  53.   # there's no texturesets or tile0{1,2,3} dir in git repo...
  54.   cp -r animation level music sound texture $pkgdir/usr/share/${_pkgname}
  55. }
  56.  
  57. # vim: sw=2:ts=2 et:
clone this paste RAW Paste Data