Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 7th, 2011  |  syntax: None  |  size: 1.47 KB  |  views: 183  |  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: Mike Melnikov <make.programs@gmail.com>
  2. pkgname=qutim-0.3-git
  3. pkgver=20110418
  4. pkgrel=1
  5. pkgdesc="Multiplatform instant messenger. GIT repository. Unstable. /opt installation"
  6. arch=('i686' 'x86_64')
  7. url="http://qutim.org"
  8. license=('GPL')
  9. depends=('qt>=4.7' 'openssl' 'libxss')
  10. makedepends=('gcc' 'make' 'cmake' 'git' 'pkgconfig' 'libpurple')
  11. conflicts=(qutim-opt-0.3)
  12. provides=(qutim-opt-0.3)
  13. replaces=()
  14. _gitroot="git://github.com/euroelessar/qutim.git"
  15. _gitname="qutim"
  16. build() {
  17.   if [ -d $srcdir/$_gitname ]
  18.   then
  19.         msg "Removing local repository... Sorry, this action could be necessary."
  20.         rm -fR $srcdir/$_gitname
  21.   fi
  22.   if [ -d $srcdir/$_gitname-build ]
  23.   then 
  24.         msg "Removing old build directory..."
  25.         rm -fR $srcdir/$_gitname-build
  26.   fi
  27.         git clone $_gitroot
  28.         cd $_gitname
  29.         git submodule update --init --recursive
  30.         mkdir build
  31.         cd build
  32.         msg "Creating temporary build directory..."
  33.         cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  34.         cd ${srcdir}/${_gitname}-build/build
  35.         msg "Removing temporary unusable plugin..."
  36.         #rm -rf ../plugins/indicator
  37.         msg "Building..."
  38.         cmake -DMULTIMEDIABACKEND=0 -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/opt/qutim-0.3 .. || return 1
  39.         sed -i "s/-Werror/ /g" $srcdir/$_gitname-build/build/protocols/quetzal/CMakeFiles/quetzal.dir/build.make
  40.         make -j3 || return 1
  41.         make DESTDIR=${pkgdir} install || return 1
  42.         msg "Removing build directory..."
  43.         cd ${srcdir}
  44.         rm -Rf ${_gitname}-build
  45.         msg "Ready ;)..."
  46. }
clone this paste RAW Paste Data