Subject: [alpine-aports] [PATCH] community/mate-screensaver: enable password lock

From: Paul Bredbury <[email-masked]>
Date: Sun, 4 Nov 2018 10:47:47 +0000

... as a fundamental GUI feature, in an office.
---
 community/mate-screensaver/APKBUILD | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/community/mate-screensaver/APKBUILD b/community/mate-screensaver/APKBUILD
index 844fcef9c4..3ef535a539 100644
--- a/community/mate-screensaver/APKBUILD
+++ b/community/mate-screensaver/APKBUILD
@@ -2,17 +2,18 @@
 # Maintainer: Francesco Colista <[email-masked]>
 pkgname=mate-screensaver
 pkgver=1.21.0
-pkgrel=0
+pkgrel=1
 pkgdesc="A screen saver and locker for MATE"
 url="https://github.com/mate-desktop/mate-screensaver"
 arch="all"
 license="GPL-2.0"
 makedepends="intltool glib-dev libxscrnsaver-dev gtk+3.0-dev
 	mate-desktop-dev dbus-glib-dev mate-menus-dev dconf-dev
-	libnotify-dev libmatekbd-dev"
+	libnotify-dev libmatekbd-dev mate-session-manager libsm-dev"
 subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
 source="https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
 builddir="$srcdir/$pkgname-$pkgver/"
+options="suid"
 
 build() {
 	cd "$builddir"
@@ -22,7 +23,8 @@ build() {
 		--sysconfdir=/etc \
 		--enable-static=no \
 		--enable-locking=yes \
-		--prefix=/usr
+		--prefix=/usr \
+		--without-console-kit
 	make
 }
 
@@ -34,6 +36,9 @@ check() {
 package() {
 	cd "$builddir"
 	make DESTDIR="${pkgdir}" install
+
+	# https://gitweb.gentoo.org/repo/gentoo.git/tree/mate-extra/mate-screensaver
+	chmod u+s "$pkgdir"/usr/libexec/mate-screensaver-dialog
 }
 
 sha512sums="c02b482b0a9ce0e0e690181093600187b16d49a57d9518956f71f3aad15da8b5cd4c3a05ad6a35cef2eec7e8b717b0f7436ebf08e4c7eaff343770c78d1f1073  mate-screensaver-1.21.0.tar.xz"
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---