aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-power-manager/APKBUILD
blob: f1e07512b1654fe4b05d691258ba9089f195ebf2 (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
41
42
43
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-power-manager
pkgver=3.30.0
pkgrel=0
pkgdesc="GNOME power manager"
url="http://www.gnome.org"
arch="all"
license="GPL"
makedepends="intltool gobject-introspection-dev
	upower-dev gtk+3.0-dev meson"
subpackages="$pkgname-lang"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
source="https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
builddir="${srcdir}/${pkgname}-${pkgver}"

prepare() {
	default_prepare
	cd "$builddir"
	mkdir -p build
}

check() {
	cd "$builddir"/build
	ninja test
}

build() {
	cd "$builddir"/build
	meson \
		--prefix=/usr \
		--buildtype=release \
		--sysconfdir=/etc ..
	ninja
}

package() {
	cd "$builddir"/build
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	DESTDIR="$pkgdir" ninja install
}

sha512sums="ed0e2a20bd8979fd9064cea9f4485da832eb44a2c727e39cde5ca9f9e2eb75a37e3d1b5a2181d9c666c19b1b300cbc62cd5f9e2c3f36ee4a4dfc3e1537a10329  gnome-power-manager-3.30.0.tar.xz"