gnome-control-center: fix cross build, add cheese vopt

closes #8717
This commit is contained in:
Rasmus Thomsen 2019-02-14 16:46:51 +01:00 committed by maxice8
parent 73795c0c02
commit b9eed924ac
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
1 changed files with 13 additions and 6 deletions

View File

@ -1,18 +1,20 @@
# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=3.30.3
revision=1
revision=2
build_style=meson
hostmakedepends="glib-devel gobject-introspection
gsettings-desktop-schemas-devel intltool pkg-config polkit python3"
makedepends="ModemManager-devel accountsservice-devel alsa-plugins cheese-devel
build_helper="gir"
configure_args="-Dcheese=$(vopt_if cheese true false)"
hostmakedepends="glib-devel gsettings-desktop-schemas-devel intltool pkg-config polkit
python3"
makedepends="ModemManager-devel accountsservice-devel alsa-plugins
colord-gtk-devel gnome-bluetooth-devel gnome-desktop-devel gnome-menus-devel
gnome-online-accounts-devel gnome-settings-daemon-devel grilo-devel ibus-devel
libSM-devel libXxf86misc-devel libgnomekbd-devel libgtop-devel
libpwquality-devel mit-krb5-devel network-manager-applet-devel polkit-devel
pulseaudio-devel samba-devel tzdata upower-devel vala-devel clutter-gtk-devel
libxml2-devel libX11-devel gtk+3-devel cups-devel libgudev-devel libwacom-devel
clutter-devel libsecret-devel"
clutter-devel libsecret-devel libcanberra-devel $(vopt_if cheese cheese-devel)"
depends="alsa-plugins-pulseaudio apg desktop-file-utils
gsettings-desktop-schemas hicolor-icon-theme iso-codes sound-theme-freedesktop"
short_desc="GNOME control center"
@ -21,7 +23,12 @@ license="GPL-2.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-control-center"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=39615b45fee4b9662f9263d70ad4ad112cf828d5041c30ee1c00ed852b0b303e
nocross="gobject-introspection"
build_options="cheese"
desc_option_cheese="Add support for adding user account images with your webcam"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" cheese"
fi
gnome-control-center-devel_package() {
short_desc+=" - development files"