Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

ultimatestunts PKGBUILD

By: a guest on Aug 21st, 2012  |  syntax: Bash  |  size: 1.52 KB  |  hits: 28  |  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: Fabian Melters <melters [at] gmail [dot] com>
  2.  
  3. pkgname=ultimatestunts
  4. pkgver=0.7.6.1
  5. pkgrel=1
  6. pkgdesc="UltimateStunts will be a remake of the famous DOS-game 'stunts'."
  7. arch=('i686' 'x86_64')
  8. url="http://www.ultimatestunts.nl"
  9. license=('GPL')
  10. depends=('openal' 'sdl' 'sdl_image' 'freealut' 'libvorbis')
  11. source=(http://downloads.sourceforge.net/sourceforge/ultimatestunts/$pkgname-srcdata-${pkgver//./}.tar.gz)
  12. md5sums=('117745dd282f9904c2d641d7f19714f7')
  13.  
  14. build() {
  15.   cd ${srcdir}/${pkgname}-srcdata-${pkgver//./}
  16.   sed -e "s/datadir = \/usr\/local\/share\/ultimatestunts\//datadir = \/usr\/share\/ultimatestunts\//" ultimatestunts.conf > ultimatestunts.conf.new
  17.   mv ultimatestunts.conf.new ultimatestunts.conf
  18.   ./configure --prefix=/usr --sysconfdir=/etc
  19.   echo "Downloading patch..."
  20.   wget http://pastebin.com/download.php?i=0widjDKC -O metaserver.patch
  21.   echo -en "\n" >> metaserver.patch
  22.   echo "Patching file..."
  23.   patch -p2 -i metaserver.patch
  24.   echo "done"
  25.   make || return 1
  26.   make sysconfdir=${pkgdir}/etc prefix=${pkgdir}/usr install
  27.   mkdir -p ${pkgdir}/usr/share/applications
  28.   touch ${pkgdir}/usr/share/applications/ultimatestunts.desktop
  29.  
  30.   echo '[Desktop Entry]
  31.         Name=Ultimate Stunts
  32.         Comment=UltimateStunts will be a remake of the famous DOS-game 'stunts'.
  33.         Exec=ustunts
  34.         Icon=/usr/share/pixmaps/ultimatestunts.png
  35.         Terminal=false
  36.         Type=Application
  37.         Categories=Application;Game
  38.         StartupNotify=false
  39.         Encoding=UTF-8' >> ${pkgdir}/usr/share/applications/ultimatestunts.desktop  
  40.  
  41.  
  42. }