summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Frilling2015-07-18 13:58:35 +0200
committerTobias Frilling2015-07-18 13:58:35 +0200
commitbb48199a6f29a98061395f5028c334eb8f1079af (patch)
tree28ef2bdecf48f3443100556be3c634976f0a1ecd
downloadaur-bb48199a6f29a98061395f5028c334eb8f1079af.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD38
-rw-r--r--v4l2_core.patch11
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4ae4f8a6fb8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = guvcview-git
+ pkgdesc = A video viewer and capturer for the linux uvc driver
+ pkgver = v2.0.1.r43.g8f6cc14
+ pkgrel = 1
+ url = http://guvcview.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = intltool
+ depends = gtk3
+ depends = ffmpeg
+ depends = portaudio
+ depends = sdl2
+ depends = gsl
+ optdepends = pulseaudio: for PulseAudio support
+ provides = guvcview
+ conflicts = guvcview
+ source = guvcview-git::git://git.code.sf.net/p/guvcview/git-master
+ source = v4l2_core.patch
+ sha1sums = SKIP
+ sha1sums = b92920fc6545209045fe8203ee23678549ad749b
+
+pkgname = guvcview-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d107299773a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Tobias Frilling <tobias@frilling-online.de>
+pkgname=guvcview-git
+_gitname=guvcview-git-master
+pkgver=v2.0.1.r43.g8f6cc14
+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=('gtk3' 'ffmpeg' 'portaudio' 'sdl2' 'gsl')
+makedepends=('git' 'intltool')
+optdepends=('pulseaudio: for PulseAudio support')
+provides=('guvcview')
+conflicts=('guvcview')
+source=("$pkgname::git://git.code.sf.net/p/guvcview/git-master"
+ "v4l2_core.patch")
+sha1sums=('SKIP'
+ 'b92920fc6545209045fe8203ee23678549ad749b')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ export CPPFLAGS+=" -O2 "
+ ./bootstrap.sh --prefix=/usr
+ patch -p1 -i $startdir/v4l2_core.patch
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/v4l2_core.patch b/v4l2_core.patch
new file mode 100644
index 00000000000..852719f54f5
--- /dev/null
+++ b/v4l2_core.patch
@@ -0,0 +1,11 @@
+--- guvcview-git/gview_v4l2core/v4l2_core.c_old 2015-04-04 00:42:28.770072098 +0200
++++ guvcview-git/gview_v4l2core/v4l2_core.c 2015-04-04 00:42:52.879798677 +0200
+@@ -915,7 +915,7 @@
+ if(vd->streaming == STRM_OK)
+ {
+ fprintf(stderr, "V4L2_CORE: (stream already started) stream_status = STRM_OK\n");
+- return;
++ return 0;
+ }
+
+ int type = V4L2_BUF_TYPE_VIDEO_CAPTURE;