# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=guvcview pkgver=2.0.3 pkgrel=0 pkgdesc="Webcam viewer" url="http://guvcview.sourceforge.net/" arch="all" license="GPLv3" depends= depends_dev= makedepends="gtk+3.0-dev eudev-dev sdl-dev portaudio-dev ffmpeg-dev gsl-dev v4l-utils-dev libusb-dev linux-headers" install= subpackages="$pkgname-doc $pkgname-lang" source="http://downloads.sourceforge.net/project/guvcview/source/guvcview-src-$pkgver.tar.gz 0001-fix-building-with-musl-libc.patch ffmpeg-3.patch " _builddir="$srcdir"/guvcview-src-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-sdl2 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="994d1d08a013356de516771818774947 guvcview-src-2.0.3.tar.gz 6d30ec659cd71d34c2d30225e730cff8 0001-fix-building-with-musl-libc.patch 9dc6bf4619686d39417d3f5faf08ca99 ffmpeg-3.patch" sha256sums="1f2c79f2dccbf512a0aa1c397ce8e5d37fb0a48008ef72a0d3f10f9dc0758bce guvcview-src-2.0.3.tar.gz a65de3103875251cba9cf9cac5399cbd6fb5a58e550a4f3573f72660e1cec454 0001-fix-building-with-musl-libc.patch 1f9cc00ca6c18b3b5a7abe03b35a9c2130104cdc2c3ae73dfb8cefced7d1dca9 ffmpeg-3.patch" sha512sums="976e62ffe26bd9c815ff754337a42512c6fcc9d55285e79e0505f6211a7ca2407546e433fc0e8439ea541ef51a23101b0badda2f9fcc9d197d3a2ab27983b704 guvcview-src-2.0.3.tar.gz 9ab9575bc41acc79581da8d43ef52fc9cf2bf46ef7df97951202e47f5516c38b42ebb715a4e8d6010ac9875c2c9c8cb1912d39282d4a632123424ab516632c98 0001-fix-building-with-musl-libc.patch 793c0057cc3d5cb63333165696a2dbf1d992ecd33541bde186a31bba9eb493609ab8ee186764189a5c753e824810240b182a54aa6b65a42dde400f7192bbce14 ffmpeg-3.patch"