void-packages/srcpkgs/cheese/template

54 lines
1.6 KiB
Bash

# Template file for 'cheese'
pkgname=cheese
version=3.38.0
revision=2
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gtk_doc gtk_doc) $(vopt_bool gtk_doc man)"
hostmakedepends="gettext gdk-pixbuf glib-devel itstool pkg-config vala librsvg
$(vopt_if gtk_doc 'gtk-doc') $(vopt_if gir 'gobject-introspection')"
makedepends="clutter-gst3-devel clutter-gtk-devel gnome-desktop-devel
gst-plugins-good1 libXtst-devel libcanberra-devel libgee08-devel librsvg-devel"
depends="clutter-gst clutter-gtk desktop-file-utils gnome-video-effects
gst-plugins-good1 hicolor-icon-theme"
short_desc="GNOME tool to take pictures and videos from your webcam"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Apps/Cheese"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=88d2732b421b903110a2628db25c0d61e219c42bdfb5971151033fba95a8d16f
build_options="gir gtk_doc"
build_options_default="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
libcheese_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
cheese-devel_package() {
depends="gst-plugins-bad1-devel clutter-gst3-devel clutter-gtk-devel
libcanberra-devel libcheese>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
}
}