aboutsummaryrefslogtreecommitdiffstats
path: root/main/powertop/APKBUILD
blob: 78e1dba4ca818eba199a38dfd86b88660875512e (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=powertop
pkgver=2.6.1
pkgrel=0
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
arch="all"
license="GPLv2"
depends=
makedepends="ncurses-dev pciutils-dev zlib-dev libnl-dev gettext-dev"
install=""
subpackages="$pkgname-lang"
source="https://01.org/sites/default/files/downloads/$pkgname/$pkgname-$pkgver.tar.gz
	stdio.patch
	libintl-underlink.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
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr
	make || return 1
}

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

md5sums="4391e7b0af854ecf722cdf712f24b631  powertop-2.6.1.tar.gz
2cc285ac3868d1d6d2a373ce5875bdf0  stdio.patch
8eb198cbf778b65d03ac66d0907d5fee  libintl-underlink.patch"
sha256sums="034cde6d5bb433fe0d29251d5cde5d4c2948abf05fe29ef10966b659331b20e4  powertop-2.6.1.tar.gz
1d76eef4c19fb2ad48bdfc1097be7118c45b7c48ca2cef2ebc6d18c36beb50b1  stdio.patch
04b7a013607baa349d91e52c734c2b69033ff27cc2b1c35984649015da463ae1  libintl-underlink.patch"
sha512sums="f21018c2899c3a7f9eb764441667ac11ae10319dbc6fe2c4c3f892eeb637a1ec22fd50f5ba17aa88aa49f224ad534edfc6d28f5ec410d03d0a2c7d7cc5e86527  powertop-2.6.1.tar.gz
fe795996e9629735bf5c96222b7c431f9a43d57ad44d4d21b13321c423e7362ecf4fba0b41bb9945c58a0cc5a6a7ecdce4d1e5c7c557d577e7710ba8501d23b1  stdio.patch
9aeabff0454fb15da023d1ac4eac8dd360870e88e6ef6d1359450e765a66582df5760b12c11187be67855054b3b14590a9a919ae26d6cc28a520edc2a3a9ea92  libintl-underlink.patch"