summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d470a6b8eba0e8817de77e6ae3730943e94b7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=dconf-git
pkgver=0.38.0
pkgrel=1
pkgdesc="Configuration database system"
url="https://wiki.gnome.org/Projects/dconf"
arch=(x86_64)
license=(LGPL)
depends=(glib2)
makedepends=(vala dbus git python meson bash-completion gtk-doc)
provides=(libdconf.so dconf)
conflicts=(dconf)
install=dconf.install
source=("git+https://gitlab.gnome.org/GNOME/dconf.git"
        dconf-update dconf-update.hook)
sha256sums=('SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd dconf
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd dconf
}

build() {
  arch-meson dconf build -D gtk_doc=false
  meson compile -C build
}

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

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
  install -Dt "$pkgdir/usr/share/libalpm/scripts" dconf-update

  # Prevent this directory from getting removed when other
  # packages which install files there get uninstalled
  install -Dm644 /dev/null "$pkgdir/etc/dconf/db/.placeholder"
}

# vim:set sw=2 et: