aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lightsoff/APKBUILD
blob: d5017d895ed122d1c87d85548f442cfae6f0aa5d (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=lightsoff
pkgver=3.34.0
pkgrel=2
arch="all !s390x" # Blocked by librsvg -> rust
url="https://wiki.gnome.org/Apps/Lightsoff"
pkgdesc="Turn off all the lights"
license="GPL-2.0-or-later"
makedepends="meson ninja itstool vala gtk+3.0-dev librsvg-dev clutter-dev clutter-gtk-dev"
source="https://download.gnome.org/sources/lightsoff/${pkgver%.*}/lightsoff-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="dafdb121810f931dcc795decf6d94f3b9fb4c67b0ea2362451f1a73fe96ff8278682ac32dd3db4d0653d530e75ec4b37effa6ee55c916b72ea8d3de618ecf7a9  lightsoff-3.34.0.tar.xz"