aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnome-power-manager/APKBUILD
blob: 69a1b44bf86cffe81aba8e13180095f899847fee (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.25.90
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="74e2034895709d1b94efe0fbed2b76d4c21826011ff759340cc79717c6897763ca917513ebc473aeb151aa8e7b5f8c0a29177482bb600276448cd690318c6ec8  gnome-power-manager-3.25.90.tar.xz"