aboutsummaryrefslogtreecommitdiffstats
path: root/community/mate-screensaver/APKBUILD
blob: 1e79a8a7d395acaf49217b44e8f1c150bb16ee56 (plain) (blame)
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
41
42
43
44
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-screensaver
pkgver=1.22.1
pkgrel=0
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 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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-static=no \
		--enable-locking=yes \
		--prefix=/usr \
		--without-console-kit
	make
}

check() {
	cd "$builddir"
	make 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="7ffb94d88095ff5580862fe9c958a2e4af7a424d40dc5e0f3c1da49a258035179573721fc7052710624916678e953a6347a898b53ff872a49e022987b8c02904  mate-screensaver-1.22.1.tar.xz"