void-packages/srcpkgs/gnome-control-center/template

51 lines
1.8 KiB
Bash

# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=3.28.2
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 <gottox@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=ff9e3d7c1693c6004c8a337eb84452d517259b52330081b6b226a8ac5793d734
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
}
}