Date: Sunday, January 1, 2023 @ 18:43:45
  Author: freswa
Revision: 1372811

archrelease: copy trunk to community-staging-x86_64

Added:
  cage/repos/community-staging-x86_64/
  cage/repos/community-staging-x86_64/PKGBUILD
    (from rev 1372810, cage/trunk/PKGBUILD)
  cage/repos/community-staging-x86_64/cage.install
    (from rev 1372810, cage/trunk/cage.install)
  cage/repos/community-staging-x86_64/keys/

--------------+
 PKGBUILD     |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 cage.install |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: cage/repos/community-staging-x86_64/PKGBUILD (from rev 1372810, 
cage/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-01-01 18:43:45 UTC (rev 1372811)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Brett Cornwall <[email protected]>
+
+pkgname=cage
+pkgver=0.1.4
+pkgrel=10
+pkgdesc="A kiosk compositor for Wayland"
+arch=(x86_64)
+url="https://www.hjdskes.nl/projects/cage/";
+license=(MIT)
+depends=(glibc wayland libwlroots.so=10)
+makedepends=(git libxkbcommon meson pixman scdoc wayland-protocols
+xorg-server-xwayland)
+optdepends=(
+  'polkit: System privilege control. Required if not using seatd service'
+  'xorg-server-xwayland: X11 support'
+)
+source=("${pkgname}::git+https://github.com/Hjdskes/${pkgname}.git#tag=v${pkgver}?signed";)
+install=cage.install
+sha512sums=('SKIP')
+validpgpkeys=('13B6A35E9FD677D02CD68DBE37C445296EBC43B1') # Jente Hidskes 
<[email protected]>
+options=(debug)
+
+prepare() {
+  cd "${pkgname}"
+  # add support for wlroots 0.15.0
+  git cherry-pick -n 1a3ab3eb3ad0f4a1addb8f9a9427d8b369b19511
+  git cherry-pick -n 8385b62a9b31028fa356cc4130baebc8b6f4adec
+  git cherry-pick -n 388d60d6b88733330fb83dd440051ee805cc7ec7
+  git cherry-pick -n 395189fb051ed722c7b10b6cb11caa8f6904079c
+}
+
+build() {
+  export PKG_CONFIG_PATH='/usr/lib/wlroots0.15/pkgconfig'
+  arch-meson -Dxwayland=true build "$pkgname"
+  ninja -C build
+}
+
+check() {
+  ninja -C build test
+}
+
+package() {
+  depends+=(libxkbcommon.so libpixman-1.so)
+
+  DESTDIR="${pkgdir}" meson install -C build
+  install -vDm 644 "$pkgname/README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 "$pkgname/LICENSE" -t 
"${pkgdir}/usr/share/licenses/${pkgname}"
+}

Copied: cage/repos/community-staging-x86_64/cage.install (from rev 1372810, 
cage/trunk/cage.install)
===================================================================
--- community-staging-x86_64/cage.install                               (rev 0)
+++ community-staging-x86_64/cage.install       2023-01-01 18:43:45 UTC (rev 
1372811)
@@ -0,0 +1,33 @@
+post_install() {
+cat << EOD
+Cage requires additional setup for privilege escalation. Without this setup,
+Cage will fail to start with session activation permission failures. Choose one
+of the two available options (In alphabetical, not recommended, order):
+
+1. polkit: This will make Cage "just work" right after installation but may be
+           a weightier solution than desired.
+
+2. seatd: Already required as a cage dependency, this is a lighter-weight
+          solution but requires some user configuration: Enable the service,
+          add your user to the "seat" group, then log out/in again.
+
+Either option should provide the same functionality/stability. For more
+information, refer to the Sway wiki page, which requires a similar setup (both
+are based on wlroots).
+EOD
+}
+
+post_upgrade() {
+cat << EOD
+Cage's necessary privileges can now be obtained through seatd as well as the
+incumbent polkit package. As such, polkit has been relegated to an optional
+dependency.
+
+Note that using seatd instead of polkit means that a user must be a part of the
+"seat" group: Otherwise, the user will not be able to achieve the appropriate
+privileged actions.
+
+For more information, refer to the Sway wiki page, which requires a similar
+setup (both are based on wlroots).
+EOD
+}

Reply via email to