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

vite-svn PKGBUILD

By: a guest on Feb 29th, 2012  |  syntax: Bash  |  size: 1.05 KB  |  views: 26  |  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. pkgname=vite-svn
  2. pkgver=1331
  3. pkgrel=1
  4. pkgdesc="Pajé like visualizer trace explorer in C++ programming language"
  5. url="http://vite.gforge.inria.fr/index.php"
  6. arch=('i686' 'x86_64')
  7. license=('GPL-2')
  8. depends=('qt' 'mesa')
  9. makedepends=('cmake')
  10.  
  11. _svntrunk="svn://scm.gforge.inria.fr/svn/vite/"
  12. _svnmod="vite"
  13.  
  14. build() {
  15.   # get the sources
  16.   cd "$srcdir"
  17.   msg "Connecting to ViTE SVN server......."
  18.   if [ -d $_svnmod/.svn ]; then
  19.     cd $_svnmod && svn up -r $pkgver
  20.   else
  21.     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  22.   fi
  23.   msg "SVN checkout done or server timeout"
  24.  
  25.   cd "${srcdir}"
  26.   rm -rf ${pkgname}-build
  27.   cp -r ${_svnmod} ${pkgname}-build
  28.   cd ${pkgname}-build
  29.  
  30.   # UGLY fix
  31.   sed -i '50i\#include <GL/glu.h>' trunk/src/render/Geometry.hpp
  32.  
  33.   msg "Starting configure.."
  34.   cmake \
  35.     -DCMAKE_BUILD_TYPE=Release \
  36.     -DCMAKE_INSTALL_PREFIX=/usr \
  37.     -DVITE_ENABLE_OTF=OFF \
  38.     ../${_svnmod}/trunk
  39.  
  40.   msg "Starting make..."
  41.   make
  42. }
  43.  
  44. package() {
  45.   cd ${pkgname}-build
  46.   make DESTDIR="${pkgdir}" install
  47. }
clone this paste RAW Paste Data