jobextra/polkit/PKGBUILD

72 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# 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" <<END
u polkitd 102 "PolicyKit daemon"
m polkitd proc
END
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL)
sha256sums=(SKIP)
## e2a39869026f9e5971ab4de2cbe0676295f8cbbdb5179a6c34027219dcb924bf polkit-123-01-x86_64.pkg.tar.lz