db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / malcontent / trunk / PKGBUILD
blob785773037681bae838c2b4f59b4e6df73c635bd1
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgbase=malcontent
4 pkgname=(malcontent libmalcontent)
5 pkgver=0.11.1
6 pkgrel=2
7 pkgdesc="Parental control support for applications"
8 url="https://gitlab.freedesktop.org/pwithnall/malcontent"
9 arch=(x86_64)
10 license=(LGPL2.1)
11 depends=(
12   accountsservice
13   appstream
14   dbus
15   flatpak
16   glib2
17   gtk4
18   libadwaita
19   polkit
20   python-gobject
22 makedepends=(
23   git
24   gobject-introspection
25   gtk-doc
26   libglib-testing
27   meson
28   yelp-tools
30 _commit=0979e6056745efe4bdfbcd1b31ef7546c367838f  # tags/0.11.1^0
31 source=("git+https://gitlab.freedesktop.org/pwithnall/malcontent.git#commit=$_commit")
32 b2sums=('SKIP')
34 pkgver() {
35   cd $pkgname
36   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
39 prepare() {
40   cd $pkgname
43 build() {
44   arch-meson $pkgname build
45   meson compile -C build
48 check() {
49   meson test -C build --print-errorlogs
52 _pick() {
53   local p="$1" f d; shift
54   for f; do
55     d="$srcdir/$p/${f#$pkgdir/}"
56     mkdir -p "$(dirname "$d")"
57     mv "$f" "$d"
58     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
59   done
62 package_malcontent() {
63   depends+=("libmalcontent=$pkgver-$pkgrel")
64   provides=(libmalcontent-ui-1.so)
65   groups=(gnome)
67   meson install -C build --destdir "$pkgdir"
69   cd "$pkgdir"
71   _pick libs usr/include/malcontent-0
72   _pick libs usr/lib/girepository-1.0/Malcontent-0.typelib
73   _pick libs usr/lib/libmalcontent-0.so*
74   _pick libs usr/lib/pkgconfig/malcontent-0.pc
75   _pick libs usr/share/gir-1.0/Malcontent-0.gir
77   install -d -o root -g 102 -m 750 usr/share/polkit-1/rules.d
80 package_libmalcontent() {
81   pkgdesc="Parental control library"
82   depends=(libg{lib,object,io}-2.0.so gcc-libs)
83   provides=(libmalcontent-0.so)
85   mv libs/* "$pkgdir"
88 # vim:set sw=2 sts=-1 et: