summaryrefslogtreecommitdiffstats
path: root/testing/powertop/APKBUILD
blob: 3cf4ec8d25da7ee165b8a3a46e5b01b3d0c1ebaf (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=powertop
pkgver=1.97
pkgrel=0
pkgdesc="Power consumption monitor"
url="http://www.lesswatts.org/"
arch="all"
license="GPLv2"
depends=
makedepends="ncurses-dev pciutils-dev zlib-dev libnl-dev gettext-dev"
install=""
subpackages=
source="http://www.kernel.org/pub/linux/status/powertop/powertop-$pkgver.tar.bz2
	intl.patch"

_builddir="$srcdir"/powertop-$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
	rm -f po/nl.po
}

build() {
	cd "$_builddir"
	make FLAGS="$CFLAGS" || return 1
}

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

md5sums="ddd318fe930c86b3666cad6f40b661bc  powertop-1.97.tar.bz2
2f04368b889cf5ef679bed7d1517857b  intl.patch"