summaryrefslogtreecommitdiffstats
path: root/main/xfce4-cpufreq-plugin/APKBUILD
blob: ec5a0ae8f5b96a22ff8ce2e903f2aee7e872d2fe (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-cpufreq-plugin
pkgver=1.1.0
pkgrel=0
pkgdesc="CPU frequency plugin for the Xfce4 panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin"
arch="all"
license="GPL2"
depends=
makedepends="xfce4-panel-dev libxfce4ui-dev"
install=
subpackages="$pkgname-lang"
source="http://archive.xfce.org/src/panel-plugins/xfce4-cpufreq-plugin/${pkgver%.*}/xfce4-cpufreq-plugin-${pkgver}.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/xfce4 \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/lib/xfce4/panel/plugins/*.la || return 1
}
md5sums="dcc56af0e19266956c297d124ba551f4  xfce4-cpufreq-plugin-1.1.0.tar.bz2"
sha256sums="eafa261bf984231ed8487c08decea6d916339d82b52f4bbe748e5c6a95c7f6b6  xfce4-cpufreq-plugin-1.1.0.tar.bz2"
sha512sums="699f341a159bb1ec2255ba84f05775cee109cf7e824cedff0206f8d39d098675fb3ada10653c3c230b411650285cc5b8a2c6508ce5d50c0bb9872e144fb8be32  xfce4-cpufreq-plugin-1.1.0.tar.bz2"