summaryrefslogtreecommitdiff
path: root/community/cinnamon-screensaver/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cinnamon-screensaver/PKGBUILD')
-rw-r--r--community/cinnamon-screensaver/PKGBUILD25
1 files changed, 16 insertions, 9 deletions
diff --git a/community/cinnamon-screensaver/PKGBUILD b/community/cinnamon-screensaver/PKGBUILD
index c4c00ab0a..f935b5bab 100644
--- a/community/cinnamon-screensaver/PKGBUILD
+++ b/community/cinnamon-screensaver/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=cinnamon-screensaver
pkgver=1.8.0
-pkgrel=1
+pkgrel=2
pkgdesc="Screensaver designed to integrate well with the Cinnamon desktop."
arch=('i686' 'x86_64')
license=('GPL')
@@ -15,15 +15,13 @@ depends=('cinnamon' 'gnome-screensaver')
makedepends=('intltool' 'gnome-common')
options=(!emptydirs)
source=($pkgname-$pkgver.tar.gz::https://github.com/linuxmint/cinnamon-screensaver/archive/$pkgver.tar.gz
- cinnamon-screensaver.desktop
- cinnamon2d-screensaver.desktop
cinnamon-screensaver.pam
- fix-dbus-compatibility.patch)
+ fix-dbus-compatibility.patch
+ lock_screen_on_suspend.patch)
sha256sums=('e85722d5af2ecbed98f50909285b335d7635214bf8cada49964f60bb5d1339c1'
- '2f29a72991deb5cc2b44da06f49d1115148fee6a0a22b1abfecee1c1661abcaa'
- '335df8f2fb270484829d94995622521f0a42a12d6887f7de827db34fc81f583a'
'b6ea9e2eb586d94bcabb617a8f1c2958111df87afdbb51f645882bccdc15cbda'
- 'eebd1d056c21d2d3f60fb954677b9214fd1d575ed1c2bbb56326cedf41a39eb6')
+ 'eebd1d056c21d2d3f60fb954677b9214fd1d575ed1c2bbb56326cedf41a39eb6'
+ '516c479558576c6c5a2509abfcbf4fdafb5953d252e7a4ab972f9db6137daca8')
build() {
cd $pkgname-$pkgver
@@ -32,6 +30,9 @@ build() {
# Fix compatibility with gnome-screensaver's D-Bus interface and various fixes
patch -Np1 -i ${srcdir}/fix-dbus-compatibility.patch
+ # Lock screen on suspend with systemd
+ patch -Np1 -i ${srcdir}/lock_screen_on_suspend.patch
+
./autogen.sh --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/cinnamon-screensaver \
--localstatedir=/var \
@@ -48,6 +49,12 @@ package() {
rm "$pkgdir"/usr/bin/gnome-screensaver{,-command}
# Autostart only in Cinnamon
- install -m644 "$srcdir/cinnamon-screensaver.desktop" "$pkgdir/etc/xdg/autostart/cinnamon-screensaver.desktop"
- install -m644 "$srcdir/cinnamon2d-screensaver.desktop" "$pkgdir/etc/xdg/autostart/cinnamon2d-screensaver.desktop"
+ cp "$pkgdir/etc/xdg/autostart/cinnamon-screensaver.desktop" \
+ "$pkgdir/etc/xdg/autostart/cinnamon2d-screensaver.desktop"
+ sed -i 's/^OnlyShowIn=.*/OnlyShowIn=GNOME;/' \
+ "$pkgdir"/etc/xdg/autostart/cinnamon{,2d}-screensaver.desktop
+ echo 'AutostartCondition=GNOME3 if-session cinnamon' \
+ >> "$pkgdir/etc/xdg/autostart/cinnamon-screensaver.desktop"
+ echo 'AutostartCondition=GNOME3 if-session cinnamon2d' \
+ >> "$pkgdir/etc/xdg/autostart/cinnamon2d-screensaver.desktop"
}