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

psi-git pkgbuild

By: a guest on Nov 30th, 2011  |  syntax: None  |  size: 1.21 KB  |  views: 45  |  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: Denis Smirnov <detanator@gmail.com>
  2. pkgname="psi-git"
  3. pkgver=20111130
  4. pkgrel=1
  5. pkgdesc="A jabber client. GIT version"
  6. url="http://psi-im.org/"
  7. license=('custom')
  8. arch=('i686' 'x86_64')
  9. depends=('qt' 'aspell' 'libxss' 'openssl' 'dbus' 'zlib')
  10. makedepends=("git")
  11. conflicts=('psi' 'psi-svn')
  12. provides=('psi' 'psi-svn')
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="git://github.com/psi-im/psi.git"
  17. _gitname="psi"
  18.  
  19. build() {
  20.    cd $srcdir
  21.  
  22.    msg "Connecting to $_gitroot ..."
  23.         if [ -d $srcdir/$_gitname ] ; then
  24.                 cd $_gitname && git pull origin
  25.                 msg "Updating iris ..."
  26.                 git submodule update
  27.                 msg "The local files are updated."
  28.           else
  29.                 git clone $_gitroot
  30.                 cd psi
  31.                 msg "Getting iris ..."
  32.                 git submodule init
  33.                 git submodule update
  34.         fi
  35.    msg "GIT checkout done or server timeout"
  36.    
  37.         [[ -d $srcdir/$_gitname-build ]] && rm -r $srcdir/$_gitname-build
  38.         cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  39.  
  40.    msg "Building $pkgname ..."
  41.         cd $srcdir/$_gitname-build
  42.  
  43.         ./configure --prefix=/usr
  44.         make || return 1
  45.         make INSTALL_ROOT="$pkgdir" install || return 1
  46.  
  47.    # Copy Psi license
  48.         install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  49.  
  50.         rm -r $srcdir/$_gitname-build
  51. }
  52.  
clone this paste RAW Paste Data