# dconf/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. This package  requires, at "build" time, a copy of "meson" that has
been patched so as not to mess with "rpath".

#---------------------------------------------------------------------

2. If this package is rebuilt, a reboot is probably advisable.

#---------------------------------------------------------------------

[buildtimes]

00.00 hours (or 000.23 minutes) - HP EliteBook 8560w 32GB RAM
00.00 hours (or 000.25 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM
00.01 hours (or 000.37 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.01 hours (or 000.38 minutes) - HP Pavilion dv8 8GB RAM
00.01 hours (or 000.43 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.02 hours (or 001.07 minutes) - Toshiba Satellite C655 E-300 CPU 4GB
                                  RAM

#---------------------------------------------------------------------

[settings]
exepack   = yes
fortran   = disabled
license   = See "license*.txt" in installed tree
licfile   = COPYING
nls       = disabled
proddir   = $PRODTREE/gtkcore
purge     = no
setpaths  = gtkcore, libproxy, python3
shareddir = yes
strip     = no
tmpsize   = 6M

#---------------------------------------------------------------------

[depends]
actools
dbus-base:strict
fontconfig
freetype2
gawk
glib20:strict
grep
gtk20
gtk30
harfbuzz
libxml2
meson
ninja
pkgconf
python:strict
python3-core:strict
sed
vala

#---------------------------------------------------------------------

[configure]
killany -qw /dconf-service || true

#---------------------------------------------------------------------

PATH=$PRODTREE/python3/bin:$PATH
PP=$PKGDIR_PROD

rm -fr build
mkdir  build
meson  build \
    -D prefix=$PP              \
    -D bindir=$PP/bin          \
    -D includedir=$PP/include  \
    -D libdir=$PP/lib          \
    -D mandir=$PP/man          \
    -D bash_completion=false   \
    -D buildtype=release

cd build
if [ \! -f build.ninja ]; then exit 1; fi
meson configure

#---------------------------------------------------------------------

[build]
cd build
ninja_simple_build

#---------------------------------------------------------------------

[postbuild]
DCONF_ETCDIR=$PKGDIR_PROD/etc/dconf
export DCONF_PROFILE=$DCONF_ETCDIR/profile/user

PATH=$PRODTREE/gtkcore/bin:$PATH
rm -fr /etc/dconf

rm -fr   $DCONF_ETCDIR
mkdir -p $DCONF_ETCDIR
cd       $DCONF_ETCDIR

mkdir -p db/local.d
mkdir -p site.d/locks
mkdir -p profile

cat > $DCONF_PROFILE << END
user-db:user
END

ln -nsf $DCONF_ETCDIR /etc/
dconf update

# See:
# https://developer.gnome.org/dconf/unstable/dconf-overview.html

#---------------------------------------------------------------------

[setup.bash]
DCONF_ETCDIR=$PKGDIR_PROD/etc/dconf
chmod 777 $DCONF_ETCDIR

export DCONF_PROFILE=$DCONF_ETCDIR/profile/user
export XDG_CONFIG_HOME=$HOME/.config

# This should be moved to a ".boot" file
mkdir -p $XDG_CONFIG_HOME/dconf

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = Not checked yet
url_home    = http://live.gnome.org/dconf/

url_lfs     = http://www.linuxfromscratch.org/~wblaszcz/\
blfs-book-xsl/gnome/dconf.html

url_tarball = http://ftp.gnome.org/pub/gnome/sources/\
dconf/0.40/dconf-0.40.0.tar.xz

#---------------------------------------------------------------------

[history]
170505 Updated from 0.25.1 to 0.26.0
171028 Updated to 0.26.1
180524 Updated to 0.28.0
180908 Updated to 0.30.0
181023 Updated to 0.30.1
190314 Updated to 0.32.0
210125 Updated to 0.38.0
210424 Updated to 0.40.0