2009-05-14 14:09:17 +00:00
|
|
|
# Template file for 'GConf'
|
|
|
|
pkgname=GConf
|
2013-01-25 09:35:53 +00:00
|
|
|
version=3.2.6
|
2014-03-29 11:15:58 +00:00
|
|
|
revision=5
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-03-20 10:19:23 +00:00
|
|
|
configure_args="--without-openldap --enable-gtk --enable-defaults-service
|
2013-01-25 09:35:53 +00:00
|
|
|
--disable-orbit --enable-gsettings-backend --disable-static"
|
2014-01-03 14:23:34 +00:00
|
|
|
conf_files="/etc/gconf/2/path"
|
2014-02-10 07:24:57 +00:00
|
|
|
hostmakedepends="libtool pkg-config intltool glib-devel"
|
2013-04-12 07:01:46 +00:00
|
|
|
makedepends="gtk+3-devel dbus-glib-devel polkit-devel libxml2-devel"
|
2009-05-14 14:09:17 +00:00
|
|
|
short_desc="A process-transparent configuration system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-29 13:44:54 +00:00
|
|
|
homepage="http://projects.gnome.org/gconf"
|
|
|
|
license="GPL-2"
|
2012-12-09 09:22:19 +00:00
|
|
|
distfiles="${GNOME_SITE}/GConf/3.2/GConf-${version}.tar.xz"
|
2013-01-25 09:35:53 +00:00
|
|
|
checksum=1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c
|
2009-05-14 14:09:17 +00:00
|
|
|
|
2014-02-10 07:24:57 +00:00
|
|
|
# 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"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
|
|
|
|
2012-03-20 10:19:23 +00:00
|
|
|
post_install() {
|
2010-04-11 10:51:56 +00:00
|
|
|
# Create GCONF_SCHEMAS_DIR
|
2012-12-09 09:22:19 +00:00
|
|
|
vmkdir usr/share/gconf/schemas
|
2010-04-11 10:51:56 +00:00
|
|
|
touch -f ${DESTDIR}/usr/share/gconf/schemas/.empty_on_purpose
|
|
|
|
# Create required sysconfdir dirs.
|
|
|
|
for d in defaults mandatory system; do
|
2012-12-09 09:22:19 +00:00
|
|
|
vmkdir etc/gconf/gconf.xml.${d}
|
2010-04-11 10:51:56 +00:00
|
|
|
touch -f ${DESTDIR}/etc/gconf/gconf.xml.${d}/.empty_on_purpose
|
|
|
|
done
|
|
|
|
}
|
2013-04-12 07:01:46 +00:00
|
|
|
|
|
|
|
GConf-devel_package() {
|
2014-01-03 14:23:34 +00:00
|
|
|
depends="glib-devel dbus-devel ${sourcepkg}>=${version}_${revision}"
|
2013-04-12 07:01:46 +00:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-01-03 14:23:34 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2014-02-10 07:24:57 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-15 22:12:12 +00:00
|
|
|
vmove usr/share/sgml
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
vmove usr/share/gtk-doc
|
2013-04-12 07:01:46 +00:00
|
|
|
# Install gconf-merge-schema
|
|
|
|
vinstall ${FILESDIR}/gconf-merge-schema.sh 755 usr/bin gconf-merge-schema
|
|
|
|
}
|
|
|
|
}
|