Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 1st, 2011  |  syntax: None  |  size: 1.33 KB  |  views: 87  |  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: Mikkel Kroman <mk@maero.dk>
  2.  
  3. pkgname=mineserver-git
  4. pkgver=20110830
  5. pkgrel=1
  6. url=('http://mineserver.be/')
  7. pkgdesc="An alternative server to Minecraft"
  8. depends=('libnoise' 'libevent' 'zlib' 'python')
  9. makedepends=('git')
  10. arch=('i686' 'x86_64')
  11. license=("3-clause BSD License")
  12. provides=('mineserver-git')
  13.  
  14. source=()
  15.  
  16. _gitname="mineserver"
  17. _gitroot="git://github.com/fador/mineserver.git"
  18.  
  19. build() {
  20.   msg "Connecting to GIT ($_gitroot)..."
  21.  
  22.   if [ -d $_gitname ]; then
  23.     cd $_gitname && git pull origin
  24.     msg "The local files of $_gitname were updated."
  25.   else
  26.     git clone $_gitroot $_gitname
  27.   fi
  28.  
  29.   msg "GIT checkout done or server timeout"
  30.  
  31.   cd ${srcdir}/mineserver
  32.   msg "Starting to compile..."
  33.  
  34.   cmake . && LDFLAGS="${LDFLAGS//-Wl,--as-needed}" make
  35.  
  36.   msg "Creating pkg..."
  37.  
  38.   mkdir -p ${pkgdir}/usr/bin
  39.   mkdir -p ${pkgdir}/usr/share/mineserver
  40.  
  41.   cp -f ${srcdir}/mineserver/bin/mineserver ${pkgdir}/usr/bin
  42.   cp -f ${srcdir}/mineserver/files/{banned.txt,config.cfg,item_alias.cfg,motd.txt,rules.txt,whitelist.txt} ${pkgdir}/usr/share/mineserver/
  43.   mkdir -p ${pkgdir}/usr/share/mineserver/plugins      
  44.   cp -f ${srcdir}/mineserver/plugins/bin/{binlog.so,commands.so,crapMobs.so,cursesui.so,filelog.so,flatpermissions.so,nBreak.so,nether.so,passiveMobs.so} ${pkgdir}/usr/share/mineserver/plugins
  45. }
clone this paste RAW Paste Data