diff --git a/polkit/PKGBUILD b/polkit/PKGBUILD new file mode 100644 index 0000000..026e66e --- /dev/null +++ b/polkit/PKGBUILD @@ -0,0 +1,71 @@ +#!/usr/bin/bash +# JOBoRun : Jwm OpenBox Obarun RUNit +# Maintainer : Joe Bo Run +# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" +# Website : https://pozol.eu +#-----------------------------------------| DESCRIPTION |--------------------------------------- + +pkgname=polkit +pkgver=123 +pkgrel=01 +pkgdesc="Application development toolkit for controlling system-wide privileges" +url="https://gitlab.freedesktop.org/polkit/polkit" +depends=(duktape expat glib2 pam) +makedepends=(git gobject-introspection gtk-doc meson) +checkdepends=(python-dbusmock) +provides=(libpolkit-{agent,gobject}-1.so) +backup=(etc/pam.d/polkit-1) +# _commit=da87c5698019897dd731bb2cbb54ebd9c9481f52 # tags/122 +_commit=fc8b07e71d99f88a29258cde99b913b44da1846d # tags/123^0 +source=( + "git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit" +) + +pkgver() { + cd polkit + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' +} + +prepare() { + cd polkit +} + +build() { + local meson_options=( + -D examples=true + -D gtk_doc=true + -D man=true + -D os_type=gentoo + -D session_tracking=ConsoleKit + -D tests=true + ) + + arch-meson polkit build "${meson_options[@]}" + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs -t 3 +} + +package() { + meson install -C build --destdir "$pkgdir" + + install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d + + install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" < +# Contributor: Jan de Groot + +pkgname=polkit +pkgver=123 +pkgrel=1 +pkgdesc="Application development toolkit for controlling system-wide privileges" +url="https://gitlab.freedesktop.org/polkit/polkit" +arch=(x86_64) +license=(LGPL) +depends=( + duktape + expat + glib2 + pam + systemd +) +makedepends=( + git + gobject-introspection + gtk-doc + meson +) +checkdepends=(python-dbusmock) +provides=(libpolkit-{agent,gobject}-1.so) +backup=(etc/pam.d/polkit-1) +_commit=fc8b07e71d99f88a29258cde99b913b44da1846d # tags/123^0 +source=( + "git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit" +) +b2sums=('SKIP') + +pkgver() { + cd polkit + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' +} + +prepare() { + cd polkit +} + +build() { + local meson_options=( + -D examples=true + -D gtk_doc=true + -D man=true + -D os_type=redhat + -D session_tracking=libsystemd-login + -D tests=true + ) + + arch-meson polkit build "${meson_options[@]}" + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs -t 3 +} + +package() { + meson install -C build --destdir "$pkgdir" + + install -d -o root -g 102 -m 750 "$pkgdir"/{etc,usr/share}/polkit-1/rules.d + + install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" <