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

48 lines
1.7 KiB
Bash

# Template file for 'gnome-control-center'
pkgname=gnome-control-center
version=3.24.3
revision=1
build_style=gnu-configure
configure_args="--disable-static --with-cheese"
short_desc="The GNOME control center"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=43a4d2a4c222ee4a53428a4a720f823e157e4d4c597ea1a84e438d242596cca2
hostmakedepends="pkg-config intltool glib-devel gnome-doc-utils gobject-introspection"
makedepends="
libXi-devel colord-devel libsoup-devel gsettings-desktop-schemas-devel
gnome-desktop-devel libgnomekbd-devel samba-devel
gnome-menus-devel network-manager-applet-devel grilo-devel
gnome-settings-daemon-devel gnome-online-accounts-devel
libcanberra-devel polkit-devel libgtop-devel alsa-plugins
upower-devel pulseaudio-devel libwacom-devel ibus-devel
gnome-bluetooth-devel tzdata cups-devel
libpwquality-devel mit-krb5-devel cheese-devel
colord-gtk-devel accountsservice-devel vala-devel
libXxf86misc-devel ModemManager-devel libSM-devel iso-codes"
depends="gsettings-desktop-schemas>=3.16 alsa-plugins-pulseaudio desktop-file-utils
hicolor-icon-theme sound-theme-freedesktop apg iso-codes"
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
}
}