summaryrefslogtreecommitdiffstats
path: root/main/xfce4-battery-plugin/APKBUILD
blob: bbb4b4931cf191fce6e8c8be33b88f937ac2009e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-battery-plugin
pkgver=1.0.5
pkgrel=2
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"
makedepends="xfce4-panel-dev libxfce4ui-dev perl-xml-parser intltool
	linux-headers"
install=
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() {
	cd "$_builddir"
	find -name config.sub | xargs chmod u+w
	update_config_sub || return 1
	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 \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/xfce4/panel/plugins/*.la
}
md5sums="ca2d394e411a20442a519efa0d14f8ec  xfce4-battery-plugin-1.0.5.tar.bz2
f4d49568be25e3180288fe8c3d019e8c  fix-includes.patch"
sha256sums="f659b1af40ab72c93448affaa693ab551827a5600ce9b97a799b7c2419bdeb11  xfce4-battery-plugin-1.0.5.tar.bz2
383210ebe9b41d5bae9325991bfc9e5c9d272538a9ed46fb4cca0b5c0f24fa75  fix-includes.patch"
sha512sums="f49f33178a771b952442f498cee2c722146c9982cb27453e6547a7c7838eaa0a22588a7d2a56f189f7e9e7b90ed7e5ac7a4e6cfee55dc5e43d32c5ef95b20062  xfce4-battery-plugin-1.0.5.tar.bz2
cd200c872b2baf6c1709c2d4b0f46b162a54a4513b5fa319c335ebeb1b5447a3563179634c3602e43ad5469912c9499c479bd02eae9ff08b48bad96f0a58c910  fix-includes.patch"