This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 31st, 2011  |  syntax: None  |  size: 0.90 KB  |  views: 58  |  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. # Contributor: erm67
  2. # Maintainer: Lartza(disastro) <lartza@wippies.com>
  3. pkgname=micropolis-git
  4. pkgver=20110731
  5. pkgrel=1
  6. pkgdesc="Micropolis Unix version (A.K.A. "S*mC*ty")"
  7. arch=('i686' 'x86_64')
  8. url="http://code.google.com/p/micropolis/"
  9. license=('GPL')
  10. depends=('sdl_mixer' 'libxpm' 'bash')
  11. makedepends=('git')
  12. options=(!makeflags)
  13.  
  14. _gitroot="git://git.zerfleddert.de/micropolis"
  15. _gitname="micropolis"
  16.  
  17. build() {
  18.   cd $srcdir
  19.        
  20.   if [ -d $_gitname ]; then
  21.     cd $_gitname && git pull origin
  22.   else
  23.     git clone --depth=1 $_gitroot $_gitname
  24.   fi
  25.  
  26.   rm -rf $srcdir/$_gitname-build
  27.  
  28.   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  29.  
  30.   cd $srcdir/$_gitname-build
  31.  
  32.   make
  33. }
  34.  
  35. package() {
  36.   cd $srcdir/$_gitname-build
  37.   sed -i -e 's|export SIMHOME=`pwd`|export SIMHOME="/usr/lib/micropolis"|' Micropolis
  38.   make PREFIX="/usr" DESTDIR="$pkgdir" LIBEXECDIR="/usr/lib/micropolis" install
  39. }
clone this paste RAW Paste Data