Advertisement
Guest User

Untitled

a guest
Jun 15th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.10 KB | None | 0 0
  1. # Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
  2. pkgname=guvcview-git
  3. pkgver=20120615
  4. pkgrel=1
  5. pkgdesc="A video viewer and capturer for the linux uvc driver"
  6. arch=('i686' 'x86_64')
  7. url="http://guvcview.sourceforge.net/"
  8. license=('GPL')
  9. depends=('portaudio' 'gtk2' 'ffmpeg' 'v4l-utils')
  10. optdepends=('pulseaudio: for PulseAudio support')
  11. makedepends=('git')
  12. conflicts=('guvcview')
  13. provides=('guvcview')
  14.  
  15. _gitroot="git://git.code.sf.net/p/guvcview/git-master"
  16. _gitname="guvcview"
  17.  
  18. build() {
  19.     cd "$srcdir"
  20.     msg "Connecting to GIT server...."
  21.  
  22.     if [[ -d "$_gitname" ]]; then
  23.         cd "$_gitname" && git pull origin
  24.         msg "The local files are updated."
  25.     else
  26.         git clone "$_gitroot" "$_gitname"
  27.     fi
  28.  
  29.     msg "GIT checkout done or server timeout"
  30.     msg "Starting build..."
  31.  
  32.     rm -rf "$srcdir/$_gitname-build"
  33.     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  34.     cd "$srcdir/$_gitname-build"
  35.  
  36.     # Build
  37.     ./configure --prefix=/usr
  38.     make
  39. }
  40.  
  41.  
  42. package() {
  43.   cd "$srcdir/$_gitname-build"
  44.   make DESTDIR="$pkgdir/" install
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement