aboutsummaryrefslogtreecommitdiffstats
path: root/main/powertop/APKBUILD
blob: 1f49d9dbe5805867b47da6dbcc2929b86d3d428c (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=powertop
pkgver=2.10
pkgrel=0
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
arch="all"
license="GPL-2.0-only"
makedepends="linux-headers ncurses-dev pciutils-dev zlib-dev libnl-dev
	gettext-dev automake autoconf libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz
	musl-fix-headers.patch
	strerror_r.patch
	"

prepare() {
	default_prepare
	sed -i "s:RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY:v$pkgver:" scripts/version
	./autogen.sh
}

build() {
	cd "$builddir"
	LIBS="-lintl" ./configure --prefix=/usr --disable-nls
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="ce7b5c4a5c80596c6a78f1c00c107a13dd3f0d9051c7c44333d18a0f0c050c8e148c8b251d59bd49341f20a6a19eb1f956902e8c57110251e9e4f608e0542357  powertop-2.10.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919  musl-fix-headers.patch
0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046  strerror_r.patch"