SHARE
TWEET

mars-shooter-git - with patch - AUR

a guest Apr 26th, 2013 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
  2. pkgname=mars-shooter-git
  3. pkgver=20120724
  4. pkgrel=1
  5. pkgdesc="A ridiculous space shooter with nice graphics"
  6. arch=(i686 x86_64)
  7. url="http://mars-game.sourceforge.net/"
  8. license=('GPL')
  9. depends=('sfml' 'taglib' 'fribidi')
  10. makedepends=('cmake' 'subversion')
  11. provides=('mars-shooter')
  12. conflicts=('mars-shooter')
  13. source=(window.patch)
  14. md5sums=(95b3390c426461ce09c67d3131d41240)
  15.  
  16. _gitroot=git://github.com/thelaui/M.A.R.S..git
  17. _gitname=mars
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [[ -d "$_gitname" ]]; then
  24.     cd "$_gitname" && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone "$_gitroot" "$_gitname"
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting build..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  35.  
  36.   cd "$srcdir"
  37.   patch -u $_gitname-build/src/System/window.cpp window.patch
  38.   cd "$srcdir/$_gitname-build"
  39.  
  40.   cmake .
  41.   make
  42. }
  43.  
  44. package() {
  45.   cd "$srcdir/$_gitname-build"
  46.  
  47.   mkdir -p $pkgdir/usr/share/marsshooter
  48.   mkdir -p $pkgdir/usr/bin/
  49.   cp -r credits.txt data/* license.txt $pkgdir/usr/share/marsshooter
  50.   cp mars $pkgdir/usr/bin/mars-shooter
  51.   find $pkgdir -name *.svn | xargs rm -rf
  52.  
  53.   sed -i 's/Exec=.*/Exec=mars-shooter/g' resources/mars.desktop
  54.   install -Dm644 resources/mars.desktop $pkgdir/usr/share/applications/mars.desktop
  55.   install -Dm644 resources/mars.png $pkgdir/usr/share/pixmaps/mars.png
  56. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top