GBPASTE

Userdata Nick: xx4h
Current Language: Plain Text   
Code
  1. # Maintainer: Fabian Melters <melters [at] gmail [dot] com>
  2.  
  3. pkgname=slingshot
  4. pkgver=0.8.1p
  5. pkgrel=4
  6. pkgdesc="A two dimensional strategy/simulation game set in the gravity fields of several planets."
  7. arch=('i686' 'x86_64')
  8. url="http://slingshot.wikispot.org"
  9. license=('GPL')
  10. depends=('python-pygame>=1.7.1' 'python2')
  11. source=(http://downloads.sourceforge.net/slingshot-game/${pkgname}-${pkgver}.tar.gz)
  12. md5sums=('a205f9cfee3e19f42d37ff6d10c46e9b')
  13.  
  14. build() {
  15.    mkdir -p ${pkgdir}/opt
  16.    mkdir -p ${pkgdir}/usr/bin
  17.    touch ${pkgdir}/usr/bin/slingshot
  18.  
  19.    cd $srcdir/${pkgname}-${pkgver} && cp -R ${pkgname} ${pkgdir}/opt
  20.  
  21.    echo '#!/bin/bash
  22.         #
  23.         cd /opt/slingshot
  24.         python2 slingshot.py
  25.         exit' >> ${pkgdir}/usr/bin/slingshot
  26.  
  27.    chmod +x ${pkgdir}/usr/bin/slingshot
  28. }
  29.  
Download as file for Windows or for Linux/OSX

© 2014 by Sascha "Mac Fly" Bürk - Imprint

german-bash.org - german-blog.org - gbimg.org - gehirnschleimschmiede.de