Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
- pkgname=guvcview-git
- pkgver=20120615
- pkgrel=1
- pkgdesc="A video viewer and capturer for the linux uvc driver"
- arch=('i686' 'x86_64')
- url="http://guvcview.sourceforge.net/"
- license=('GPL')
- depends=('portaudio' 'gtk2' 'ffmpeg' 'v4l-utils')
- optdepends=('pulseaudio: for PulseAudio support')
- makedepends=('git')
- conflicts=('guvcview')
- provides=('guvcview')
- _gitroot="git://git.code.sf.net/p/guvcview/git-master"
- _gitname="guvcview"
- build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
- # Build
- ./configure --prefix=/usr
- make
- }
- package() {
- cd "$srcdir/$_gitname-build"
- make DESTDIR="$pkgdir/" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement