aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-power-manager/APKBUILD
blob: d85f5f52aa359f279d476e8407129df676b58bee (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-power-manager
pkgver=1.5.2
pkgrel=1
pkgdesc="Power management for the Xfce desktop environment"
url="http://goodies.xfce.org/projects/applications/xfce4-power-manager"
arch="all"
license="GPLv2+"
depends="polkit"
depends_dev="xfconf-dev xfce4-panel-dev dbus-glib-dev libnotify-dev
	libxrandr-dev libxfce4ui-dev"
makedepends="$depends_dev upower-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://archive.xfce.org/src/apps/xfce4-power-manager/${pkgver%.*}/xfce4-power-manager-$pkgver.tar.bz2
	inhibit-fake-key-events.patch
	"

_builddir="$srcdir"/xfce4-power-manager-$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 \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="28e1ac260a6ea64ebc5f740c06d2a6b8  xfce4-power-manager-1.5.2.tar.bz2
82f585cb80f21c61596560dbe49817d6  inhibit-fake-key-events.patch"
sha256sums="8bdc640f227ffccbdcfbbcca8ba36d1ce054236c0a32dbf87a4a751f3a835415  xfce4-power-manager-1.5.2.tar.bz2
13e59fb84284204919d9dbc9b3b3142f6e744c88b350fa43a254497c64211101  inhibit-fake-key-events.patch"
sha512sums="b59435b98cf4c85f9cdf6a66bc74dd8cbb9a8dc6d409a488e186478933b54278cfed102e70ac0b1bc9389a77c441ff32bbe051fa0c5c9b6981dc9e99a2c54263  xfce4-power-manager-1.5.2.tar.bz2
5a79a6e61bedecbda5ce3dea6af3121fb8aeba8c44940e5b6907347a7c454f72461a3b99e73c966db1998bd58ab34ca76a562d8011c00bae674b1f52671e7c2e  inhibit-fake-key-events.patch"