aboutsummaryrefslogtreecommitdiffstats
path: root/testing/xfce4-sensors-plugin/APKBUILD
blob: 79b1a11a29a25f2e38e6ef2fb5a629d100825cd9 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xfce4-sensors-plugin
pkgver=1.2.6
pkgrel=0
pkgdesc="Reads your hardware sensor values and displays them in your panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin"
arch="all"
license="GPLv2"
depends=""
depends_dev="xfce4-panel-dev lm_sensors-dev libxfce4ui-dev"
makedepends="$depends_dev bash"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://archive.xfce.org/src/panel-plugins/$pkgname/1.2/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/xfce4-sensors-plugin-$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 \
		--disable-static \
		|| return 1
	make || return 1
}

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

md5sums="33c2e343c1224d9c4ae757a70cbe08eb  xfce4-sensors-plugin-1.2.6.tar.bz2"
sha256sums="235ef842bd45e701bceebb21a384ab09f21afceea8ed95f91bb4c6cf3abe1bc0  xfce4-sensors-plugin-1.2.6.tar.bz2"
sha512sums="5c520f1c253df1bb9e29855c5ccfc1536034945ca68b43cd8b6d97083e528b2430230d9c51d43953a71c3f0171ae718bf1557714729b1343ebd51f91f3f36d60  xfce4-sensors-plugin-1.2.6.tar.bz2"