# Template file for 'gnome-control-center' pkgname=gnome-control-center version=3.28.1 revision=1 build_style=meson configure_args="-Dcheese=true" hostmakedepends="glib-devel gnome-doc-utils gobject-introspection intltool pkg-config" makedepends="ModemManager-devel accountsservice-devel alsa-plugins cheese-devel 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" depends="alsa-plugins-pulseaudio apg desktop-file-utils gsettings-desktop-schemas hicolor-icon-theme iso-codes sound-theme-freedesktop" short_desc="The GNOME control center" maintainer="Enno Boland " license="GPL-2.0-or-later" homepage="http://www.gnome.org" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=c65e56d42e2f8d1fd93ea0afe8c4eafcd4594adc45e2b0d8c069d0f557485738 CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gnome-bluetooth -DHAVE_BLUETOOTH" LDFLAGS="-lgnome-bluetooth" pre_configure() { sed '/gnome_bluetooth_dep/d' -i \ meson.build panels/power/meson.build panels/bluetooth/meson.build } post_configure() { if [ "$CROSS_BUILD" ]; then # Fix wrong GDESKTOP_PREFIX = /usr find . -name Makefile -exec sed -i "{}" \ -e "s;GDESKTOP_PREFIX = /usr;GDESKTOP_PREFIX = ${XBPS_CROSS_BASE}/usr;" \; # Disable ./test-hostname (binary is not compiled for host arch) sed -i shell/Makefile \ -e "s;all-local: check-local;all-local:;" fi } gnome-control-center-devel_package() { short_desc+=" - development files" pkg_install() { vmove usr/share/pkgconfig } }