blob: caf8383b0d6765cde8d0881add331c2218280538 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=powertop
pkgver=2.9
pkgrel=1
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
arch="all"
license="GPL-2.0"
depends=
makedepends="linux-headers ncurses-dev pciutils-dev zlib-dev libnl-dev
gettext-dev"
install=""
subpackages="$pkgname-doc"
source="https://01.org/sites/default/files/downloads/$pkgname/$pkgname-v$pkgver.tar.gz
musl-fix-headers.patch
strerror_r.patch
"
builddir="$srcdir"/$pkgname-v$pkgver
build() {
cd "$builddir"
LIBS="-lintl" ./configure --prefix=/usr --disable-nls
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="783af538c44e3fae7215a5b4247eb32a72e02150b3f297e6b9777a450823dd30aca014601892c0e80937a366eed95b42b622c68161d53e905ad4fbcb574b26f5 powertop-v2.9.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch
0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046 strerror_r.patch"
|