Browse Source

[trunk] -> [extra] 'dconf-0.32.0-3' add

master
artoo 5 months ago
parent
commit
b4c8044ab1
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B

+ 12
- 5
dconf/repos/extra-x86_64/PKGBUILD View File

@@ -3,16 +3,20 @@

pkgname=dconf
pkgver=0.32.0
pkgrel=1
pkgrel=3
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
@@ -29,11 +33,14 @@ build() {
}

check() {
meson test -C build
meson test -C build --print-errorlogs
}

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"
install -Dm644 /dev/null "$pkgdir/etc/dconf/db/.placeholder"
}

# vim:set ts=2 sw=2 et:
# vim:set sw=2 et:

+ 12
- 0
dconf/repos/extra-x86_64/dconf-update.hook View File

@@ -0,0 +1,12 @@
[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

+ 9
- 0
dconf/repos/extra-x86_64/dconf-update.script View File

@@ -0,0 +1,9 @@
#!/bin/bash

while read -r d; do
if [[ ! -d $d ]]; then
rm -f "${d%.d/}"
fi
done

dconf update

+ 11
- 0
dconf/repos/extra-x86_64/dconf.install View File

@@ -0,0 +1,11 @@
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:

+ 12
- 5
dconf/trunk/PKGBUILD View File

@@ -3,16 +3,20 @@

pkgname=dconf
pkgver=0.32.0
pkgrel=1
pkgrel=3
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
@@ -29,11 +33,14 @@ build() {
}

check() {
meson test -C build
meson test -C build --print-errorlogs
}

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"
install -Dm644 /dev/null "$pkgdir/etc/dconf/db/.placeholder"
}

# vim:set ts=2 sw=2 et:
# vim:set sw=2 et:

+ 12
- 0
dconf/trunk/dconf-update.hook View File

@@ -0,0 +1,12 @@
[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

+ 9
- 0
dconf/trunk/dconf-update.script View File

@@ -0,0 +1,9 @@
#!/bin/bash

while read -r d; do
if [[ ! -d $d ]]; then
rm -f "${d%.d/}"
fi
done

dconf update

+ 11
- 0
dconf/trunk/dconf.install View File

@@ -0,0 +1,11 @@
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:

Loading…
Cancel
Save