blob: 7d80082e2e97c5a73776ee7da08ae74515b2eb48 (
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
49
50
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=powertop
pkgver=2.8
pkgrel=0
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
arch="all"
license="GPLv2"
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-$pkgver.tar.gz
musl-fix-headers.patch
strerror_r.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"
LIBS="-lintl" ./configure --prefix=/usr --disable-nls || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="c55fedb69203e480801b18bd7b886241 powertop-2.8.tar.gz
2c73602679df7fc10d5112f7a8771903 musl-fix-headers.patch
9cd5d96434218c1a85275ff7fea72eb2 strerror_r.patch"
sha256sums="a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a powertop-2.8.tar.gz
aeecfe22758334e4290c35dcbc5418a3595645e2a7e96c846f16cb5d19c99a09 musl-fix-headers.patch
dcdde9ea35b25d83fdb3521601590218ce4a3ce7fd414aa08ac28295196cedcf strerror_r.patch"
sha512sums="253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80 powertop-2.8.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch
0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046 strerror_r.patch"
|