aboutsummaryrefslogtreecommitdiffstats
path: root/community/xfce4-battery-plugin/APKBUILD
blob: 51224ddd1b6bc6e7cf9e4c1e9e1a92a2076fce9a (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-battery-plugin
pkgver=1.1.0
pkgrel=0
pkgdesc="A battery monitor plugin for the Xfce panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin"
arch="all"
license="GPL-2.0"
makedepends="xfce4-panel-dev libxfce4ui-dev perl-xml-parser intltool linux-headers"
subpackages="$pkgname-lang"
source="http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
	"
#	fix-includes.patch
#	"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	find \( -name config.sub -o -name config.guess \) -exec chmod 0755 {} \;
	update_config_sub
	update_config_guess
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static
	make
}

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

sha512sums="d3f5b6d3657abfba2c4c5cb3ab8ddc87f4862f24eb614cb91af48332b3082c3dce7f32eb2e3cb8a9d501ddb01c6259c4fbfbab8ed9c221633e47eb17c623cf09  xfce4-battery-plugin-1.1.0.tar.bz2"