aboutsummaryrefslogtreecommitdiffstats
path: root/community/xfce4-screensaver/APKBUILD
blob: 45ab77637fe2b2f9b120a5989aa5d8dd8507b88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-screensaver
pkgver=0.1.6
pkgrel=0
pkgdesc="Screensaver and locker for XFCE"
url="https://git.xfce.org/apps/xfce4-screensaver/about/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libx11-dev gtk+3.0-dev dbus-glib-dev glib-dev libxklavier-dev
	xfconf-dev garcon-dev libxrandr-dev libxscrnsaver-dev libxfce4ui-dev
	libxext-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/apps/xfce4-screensaver/0.1/xfce4-screensaver-$pkgver.tar.bz2"
options="suid" # FIXME: write an external helper with sgid shadow to avoid suid root

_libexecdir=/usr/lib/xfce4
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=$_libexecdir \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-locking
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	chgrp shadow "$pkgdir"$_libexecdir/xfce4-screensaver-dialog
	chmod +s "$pkgdir"$_libexecdir/xfce4-screensaver-dialog
}

sha512sums="b4bc1e6e57ed9c76795cc9655a10956d739ed8003a7eb1195da9dcd185af87409a2150ec8a37c2f58a27ad6c53719713e954914de47f2a8d6b7bf438b2d5e8a4  xfce4-screensaver-0.1.6.tar.bz2"