summaryrefslogtreecommitdiffstats
path: root/x11/xfce4-battery-plugin/APKBUILD
blob: d67d17150e2d59fafa4f3c13f7cc4398ff96add3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-battery-plugin
pkgver=0.5.1
pkgrel=0
pkgdesc="A battery monitor plugin for the Xfce panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin"
license="GPL-2"
makedepends="xfce4-panel-dev libxfcegui4-dev perl-xml-parser intltool"
install="$pkname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2
	compile_x86_64.diff"

build ()
{
	cd "$srcdir"/$pkgname-$pkgver
	patch -Np1 -i "$srcdir"/compile_x86_64.diff || return 1
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static
	make || return 1
	make DESTDIR="$pkgdir" install
}
md5sums="d8a666d85bb3c1dd007b547de4dd7037  xfce4-battery-plugin-0.5.1.tar.bz2
d9a927bca032e9b10a04046c154243a1  compile_x86_64.diff"