# Template file for 'cheese'
pkgname=cheese
version=3.10.0
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-schemas-compile"
hostmakedepends="which pkg-config intltool gnome-doc-utils itstool
 gobject-introspection"
makedepends="gst-plugins-bad1-devel>=1:1.2.0 clutter-gtk-devel>=1.4.4_2
 clutter-gst-devel>=2.0.8_2 libgee08-devel>=0.12 libcanberra-devel
 librsvg-devel libgudev-devel gnome-desktop-devel>=3.10
 gst-plugins-good1>=1:1.2.0 gnome-video-effects"
short_desc="GNOME tool to take pictures and videos from your webcam"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gnome.org/projects/cheese/"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=eb0d8ba5211a4fe804d540e16a7fb61f16c467e23b106370723c32731b6e620b
long_desc="
 A webcam application that supports image and video capture. Makes it easy to
 take photos and videos of you, your friends, pets or whatever you want. Allows
 you to apply fancy visual effects, fine-control image settings and has
 features such as Multi-Burst mode, Countdown timer for photos."

libcheese_package() {
	short_desc+=" - shared libraries"
	pkg_install() {
		vmove "usr/lib/*.so.*"
		vmove usr/lib/girepository-1.0
	}
}

cheese-devel_package() {
	depends="gst-plugins-bad1-devel>=1:1.2.0
		 libcanberra-devel
		 clutter-gst-devel>=2.0.2
		 clutter-gtk-devel>=1.4.4
		 libcheese-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/gir-1.0
		vmove usr/share/gtk-doc
	}
}

cheese_package() {
	depends="clutter-gst>=2.0.8_2
		 clutter-gtk>=1.4.4_2
		 gst-plugins-good1>=1:1.2
		 desktop-file-utils
		 hicolor-icon-theme
		 gnome-video-effects"
	pkg_install() {
		vmove all
	}
}
