aboutsummaryrefslogtreecommitdiffstats
path: root/main/powertop/APKBUILD
blob: 637a537e0ff99dd11f33e55c515f0128267caeec (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=powertop
pkgver=2.13
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 autoconf-archive"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz
	musl-fix-headers.patch
	"

prepare() {
	default_prepare
	autoreconf -fi
}

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

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

sha512sums="8ebeccd17b6f76d9e445382d9ce5b1c00ab2daf4f1e6e133c249bceb35ea582ca3e76da5415fd0b55a28b8a124655dc5ac7a18aaf2a3df955547d77495e59181  powertop-2.13.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919  musl-fix-headers.patch"