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: siasia on Nov 18th, 2012  |  syntax: Bash  |  size: 0.74 KB  |  views: 68  |  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: Jakub Schmidtke <sjakub-at-gmail.com>
  2. _pkgname=libmxp
  3. pkgname="$_pkgname-git"
  4. pkgver=20121119
  5. pkgrel=1
  6. pkgdesc="MUD eXtension Protocol library."
  7. arch=('i686' 'x86_64')
  8. url="http://www.kmuddy.com/libmxp"
  9. license=('LGPL')
  10. depends=()
  11. makedepends=('cmake')
  12. _gitroot="git://anongit.kde.org/kmuddy"
  13. _gitname="kmuddy"
  14.  
  15. build() {
  16.         cd "$srcdir"
  17.         msg "Connecting to GIT server..."
  18.         if [ -d $_gitname ] ; then
  19.                 cd $_gitname && git pull origin
  20.                 cd ..
  21.                 msg "The local files are updated."
  22.         else
  23.                 git clone --depth=1 $_gitroot $_gitname
  24.         fi
  25.         msg "GIT checkout done or server timeout"
  26.  
  27.         cd $_gitname/$_pkgname
  28.         cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr
  29.  
  30.   make || return 1
  31.   make DESTDIR=${pkgdir} install
  32. }
clone this paste RAW Paste Data