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

35 lines
1005 B
Bash

# Template file for 'gsettings-desktop-schemas'
pkgname=gsettings-desktop-schemas
version=3.28.0
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel"
short_desc="Collection of GSettings schemas"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=4cb4cd7790b77e5542ec75275237613ad22f3a1f2f41903a298cf6cc996a9167
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
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
}
}