void-packages/srcpkgs/gsettings-desktop-schemas/template

42 lines
1.1 KiB
Plaintext
Raw Normal View History

# Template file for 'gsettings-desktop-schemas'
pkgname=gsettings-desktop-schemas
version=3.12.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config intltool glib-devel"
makedepends="libglib-devel"
short_desc="Collection of GSettings schemas"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=da75021e9c45a60d0a97ea3486f93444275d0ace86dbd1b97e5d09000d8c4ad1
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
gsettings-desktop-schemas-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}