add polkit

This commit is contained in:
joborun linux 2023-07-29 11:15:23 +03:00
parent bf878a8584
commit c5ac6577fc
5 changed files with 158 additions and 0 deletions

71
polkit/PKGBUILD Normal file
View File

@ -0,0 +1,71 @@
#!/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

71
polkit/PKGBUILD-arch Normal file
View File

@ -0,0 +1,71 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
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" <<END
u polkitd 102 "PolicyKit daemon"
m polkitd proc
END
}
# vim:set sw=2 sts=-1 et:

1
polkit/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,polkit}

9
polkit/deps Normal file
View File

@ -0,0 +1,9 @@
duktape
git
gobject-introspection
gtk-doc
meson
python-dbusmock
gettext

6
polkit/time Normal file
View File

@ -0,0 +1,6 @@
real 0m41.831s
user 0m48.234s
sys 0m3.617s