aboutsummaryrefslogtreecommitdiffstats
path: root/community/mate-power-manager/APKBUILD
blob: 51084cbf2b5a2fb8b9065545afe34704049a8631 (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
44
45
46
47
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mate-power-manager
pkgver=1.22.0
pkgrel=0
pkgdesc="A Power Manager for MATE"
url="https://github.com/mate-desktop/mate-power-manager"
arch="all"
license="GPL-2.0-or-later"
makedepends="$depends_dev intltool gettext-dev itstool glib-dev libcanberra-dev
	dbus-glib-dev mate-desktop-dev dconf-dev libnotify-dev libunique-dev
	upower-dev libgnome-keyring-dev mate-panel-dev libcanberra-dev harfbuzz-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	0001-execinfo-patch.patch
	0001-removing-backtrace.patch
	0001-get_nprocs-patch.patch
	install-sh.patch
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--enable-static=no
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="d36ec8d328e00ccc14b26c36ded74f20ea80578870541899560c6a744018e5e91b08ec9b4d517548404e82da6f1868ed1f2fcc0aada1223f98e68dd6e6009503  mate-power-manager-1.22.0.tar.xz
f7c97099144a077d00d0dbee0ed148fb7a82ea902a31b4607b3b37b07d26530dc06695c9ff9565ba457f754c2093610efa46965d0d28329cd23a7a061f1b4249  0001-execinfo-patch.patch
76364f42dbeceb0c13e957e83fe40873cc93f2d83497b658419765ea736a50f436515347960f5f30a021b55aef670fddce04787c892509b8c54995512a5dc1b7  0001-removing-backtrace.patch
76d93fb1313e3fabbd333d9ccb3a97907cea5292150aecf813ca32f4e434eab69f337ff7578ce3d0e940bb8fad28d1b13264bd6130cdaea7de618104c5826779  0001-get_nprocs-patch.patch
2220612dcda2f992ce6e7d8225c3d012497ff297921c24d40853553783c6b0f95c8e25ab0ad3454931e6e104a9951892972c045e4b9e2672cbbe34cd5a0936f3  install-sh.patch"