aboutsummaryrefslogtreecommitdiffstats
path: root/community/mate-power-manager/APKBUILD
blob: 2234a2785cf330a35eddc0e990354fae694cc607 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer:
pkgname=mate-power-manager
pkgver=1.12.1
pkgrel=0
pkgdesc="A Power Manager for MATE"
url="https://github.com/mate-desktop/mate-power-manager"
arch="all"
license="GPLv2"
depends=""
depends_dev=""
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"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz
	0001-execinfo-patch.patch
	0001-removing-backtrace.patch
	0001-get_nprocs-patch.patch"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
                --build=$CBUILD \
                --host=$CHOST \
		--sysconfdir=/etc \
                --prefix=/usr \
		--with-gtk=2.0 \
		--disable-strict \
        make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1
}

md5sums="5cef358dbcb33f0db0cd48efb8099573  mate-power-manager-1.12.1.tar.xz
e418279985b1f3127a9f400a1a5ab001  0001-execinfo-patch.patch
adfd35982d98552789b1e296fa2a426d  0001-removing-backtrace.patch
0ba879152699a66f7770692fe3131a06  0001-get_nprocs-patch.patch"
sha256sums="c43aa2ae75335a758d71cdab4b939141c352a7fb179c3e41a064ce9c007b587f  mate-power-manager-1.12.1.tar.xz
651f146c9c7632f520a9f340d02ff6bfc0383aac70f926cf5dfa8a413876707e  0001-execinfo-patch.patch
b1764f4a772d5287f2c0b33da7ab0b7c8bfe8192e032dcbe7f767b60638b4b42  0001-removing-backtrace.patch
6682dddfe1d8a21e26416193797dd1009024c67df2592fcab5a01343cf15a6ff  0001-get_nprocs-patch.patch"
sha512sums="60da8ab6988a4bbef363fcf4571260bc7f70ed90badf85e4233e6ed80cfc13446319bd8686ed6d4bf9752971a6f98021a5d0354e3aa7f9274b6fdbc8f9f920b4  mate-power-manager-1.12.1.tar.xz
f7c97099144a077d00d0dbee0ed148fb7a82ea902a31b4607b3b37b07d26530dc06695c9ff9565ba457f754c2093610efa46965d0d28329cd23a7a061f1b4249  0001-execinfo-patch.patch
76364f42dbeceb0c13e957e83fe40873cc93f2d83497b658419765ea736a50f436515347960f5f30a021b55aef670fddce04787c892509b8c54995512a5dc1b7  0001-removing-backtrace.patch
76d93fb1313e3fabbd333d9ccb3a97907cea5292150aecf813ca32f4e434eab69f337ff7578ce3d0e940bb8fad28d1b13264bd6130cdaea7de618104c5826779  0001-get_nprocs-patch.patch"