Advertisement
siasia

Untitled

Nov 18th, 2012
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement