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

qtgstreamer-git

By: a guest on Jan 6th, 2011  |  syntax: None  |  size: 1.03 KB  |  views: 362  |  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. # Maintainer: Christopher Schwaab -- christopher.schwaab gmail
  2. pkgname=qtgstreamer-git
  3. pkgver=20110106
  4. pkgrel=1
  5. pkgdesc="Gstreamer bindings for C++/Qt."
  6. arch=('i686' 'x86_64')
  7. url="http://gitorious.org/qtgstreamer"
  8. license=('GPL')
  9. depends=('gstreamer0.10-base' 'qt')
  10. makedepends=('git' 'boost' 'doxygen')
  11. source=()
  12. md5sums=()
  13.  
  14. _gitroot=git://anongit.freedesktop.org/gstreamer/qt-gstreamer
  15. _gitname=qtgstreamer
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.   msg "Connecting to GIT server...."
  20.  
  21.   if [ -d $_gitname ] ; then
  22.     cd $_gitname && git pull origin || return 1
  23.     msg "The local files are updated."
  24.   else
  25.     git clone $_gitroot $_gitname || return 1
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   rm -rf "$srcdir/$_gitname-build"
  32.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" || return 1
  33.   cd "$srcdir/$_gitname-build"
  34.  
  35.   cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
  36.   make || return 1
  37. }
  38.  
  39. package() {
  40.   cd "$srcdir/$_gitname-build"
  41.   make DESTDIR="$pkgdir/" install || return 1
  42. }
clone this paste RAW Paste Data