[arch-commits] Commit in malcontent/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Fri Mar 27 19:13:57 UTC 2020


    Date: Friday, March 27, 2020 @ 19:13:57
  Author: heftig
Revision: 378562

0.7.0-1

Added:
  malcontent/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-27 19:13:57 UTC (rev 378562)
@@ -0,0 +1,44 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=malcontent
+pkgver=0.7.0
+pkgrel=1
+pkgdesc="Parental control support for applications"
+url="https://gitlab.freedesktop.org/pwithnall/malcontent"
+license=(LGPL2.1)
+arch=(x86_64)
+depends=(accountsservice dbus flatpak glib2 gtk3 polkit)
+makedepends=(git meson gobject-introspection gtk-doc)
+provides=(libmalcontent{,-ui}-${pkgver%%.*}.so)
+_commit=2e8a07d58c047f757e36a5fcf1d5b76faae08e75  # tags/0.7.0^0
+source=("git+https://gitlab.freedesktop.org/pwithnall/malcontent.git#commit=$_commit"
+        "git+https://gitlab.gnome.org/pwithnall/libglib-testing.git")
+sha256sums=('SKIP'
+            'SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  git submodule init
+  git submodule set-url subprojects/libglib-testing "$srcdir/libglib-testing"
+  git submodule update
+}
+
+build() {
+  arch-meson $pkgname build
+  ninja -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+  install -d -o root -g 102 -m 750 "$pkgdir/usr/share/polkit-1/rules.d"
+}



More information about the arch-commits mailing list