#### this file is sourced not run
PKGVER=1.7.1
PKGBUILD=2
PKGARCH=x86_64

# source: james
TARBALL=guvcview-src-1.7.1.tar.gz
MD5SUM=5ca1b9c89d2b9370ee203dcc24efd695
SRC_URL=http://downloads.sourceforge.net/guvcview/$TARBALL
BUNDLE=

SLACKREQ='gtk2 alsa-lib libportaudio ffmpeg libSDL v4l-utils'
SLACKDESC='guvcview: guvcview 1.7.1 (GTK Webcam Viewer)  
guvcview:  
guvcview: This package provides a tool for capturing and viewing video from 
guvcview: devices supported by the linux UVC driver, although it should also 
guvcview: work with any v4l2 compatible device.  
guvcview: 
guvcview: 
guvcview: 
guvcview: 
guvcview: 
guvcview:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/guvcview* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/guvcview-1.7.1-james-gtk2.patch &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/guvcview-1.7.1-james-uvc-bug.patch
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/guvcview*
	autoreconf -fi
	pkg_build_autoconf &&
	pkg_build_slackdesc
}

