Skip to content
Snippets Groups Projects
Commit 737354c8 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

0.32.0-2: Add system database update hook

parent 24070bd7
No related branches found
No related tags found
No related merge requests found
......@@ -3,16 +3,20 @@
pkgname=dconf
pkgver=0.32.0
pkgrel=1
pkgrel=2
pkgdesc="Configuration database system"
url="https://wiki.gnome.org/Projects/dconf"
arch=(x86_64)
license=(LGPL2.1)
depends=(glib2)
makedepends=(vala dbus git gtk-doc python meson bash-completion)
install=dconf.install
_commit=7419a726a2dbaca7781cec4eeb65bd1334a523d7 # tags/0.32.0^0
source=("git+https://gitlab.gnome.org/GNOME/dconf.git#commit=$_commit")
sha256sums=('SKIP')
source=("git+https://gitlab.gnome.org/GNOME/dconf.git#commit=$_commit"
dconf-update.{hook,script})
sha256sums=('SKIP'
'51b5c5570eac4792eb4a0efe820e3451b2019501855e57974fcd18986cf86977'
'330142605370f82f4229e8a94b245f911407eb629b50f1497f415c70164a90ec')
pkgver() {
cd $pkgname
......@@ -34,6 +38,8 @@ check() {
package() {
DESTDIR="$pkgdir" meson install -C build
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 dconf-update.hook
install -D dconf-update.script "$pkgdir/usr/share/libalpm/scripts/dconf-update"
}
# vim:set ts=2 sw=2 et:
# vim:set sw=2 et:
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = etc/dconf/db/*.d/
[Action]
Description = Updating system dconf databases...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/dconf-update
NeedsTargets
#!/bin/bash
while read -r d; do
if [[ ! -d $d ]]; then
rm -f "${d%.d/}"
fi
done
dconf update
post_install() {
post_upgrade $1 0
}
post_upgrade() {
if (( $(vercmp $2 0.32.0-2) < 0 )); then
dconf update
fi
}
# vim:set sw=2 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment