void-packages/srcpkgs/GConf/template

60 lines
1.7 KiB
Bash
Raw Normal View History

# Template file for 'GConf'
pkgname=GConf
2013-01-25 10:35:53 +01:00
version=3.2.6
revision=6
build_style=gnu-configure
2012-03-20 11:19:23 +01:00
configure_args="--without-openldap --enable-gtk --enable-defaults-service
--disable-orbit --enable-gsettings-backend --disable-static
$(vopt_enable gir introspection)"
2014-01-03 15:23:34 +01:00
conf_files="/etc/gconf/2/path"
hostmakedepends="libtool pkg-config intltool glib-devel $(vopt_if gir gobject-introspection)"
makedepends="gtk+3-devel dbus-glib-devel polkit-devel libxml2-devel"
depends="dconf"
short_desc="A process-transparent configuration system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2011-06-29 15:44:54 +02:00
homepage="http://projects.gnome.org/gconf"
license="GPL-2"
distfiles="${GNOME_SITE}/GConf/3.2/GConf-${version}.tar.xz"
2013-01-25 10:35:53 +01:00
checksum=1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
libtoolize -f
}
2012-03-20 11:19:23 +01:00
post_install() {
# Create GCONF_SCHEMAS_DIR
vmkdir usr/share/gconf/schemas
touch -f ${DESTDIR}/usr/share/gconf/schemas/.empty_on_purpose
# Create required sysconfdir dirs.
for d in defaults mandatory system; do
vmkdir etc/gconf/gconf.xml.${d}
touch -f ${DESTDIR}/etc/gconf/gconf.xml.${d}/.empty_on_purpose
done
}
GConf-devel_package() {
2014-01-03 15:23:34 +01:00
depends="glib-devel dbus-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2014-01-03 15:23:34 +01:00
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
2013-04-16 00:12:12 +02:00
vmove usr/share/sgml
vmove usr/share/aclocal
vmove usr/share/gtk-doc
# Install gconf-merge-schema
vbin ${FILESDIR}/gconf-merge-schema.sh gconf-merge-schema
}
}