1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgname=(malcontent libmalcontent)
7 pkgdesc="Parental control support for applications"
8 url="https://gitlab.freedesktop.org/pwithnall/malcontent"
30 _commit=0979e6056745efe4bdfbcd1b31ef7546c367838f # tags/0.11.1^0
31 source=("git+https://gitlab.freedesktop.org/pwithnall/malcontent.git#commit=$_commit")
36 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
44 arch-meson $pkgname build
45 meson compile -C build
49 meson test -C build --print-errorlogs
53 local p="$1" f d; shift
55 d="$srcdir/$p/${f#$pkgdir/}"
56 mkdir -p "$(dirname "$d")"
58 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
62 package_malcontent() {
63 depends+=("libmalcontent=$pkgver-$pkgrel")
64 provides=(libmalcontent-ui-1.so)
67 meson install -C build --destdir "$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)
88 # vim:set sw=2 sts=-1 et: