blob: 4c3ce3898ae4ca8b66fed18cd2b0943896e6c1c0 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=powertop
pkgver=2.11
pkgrel=1
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
$pkgname-bash-completion:bashcomp:noarch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz
musl-fix-headers.patch
"
prepare() {
default_prepare
sed -i "s:RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY:v$pkgver:" scripts/version
./autogen.sh
}
build() {
LIBS="-lintl" ./configure --prefix=/usr --disable-nls
make
}
package() {
make DESTDIR="$pkgdir" install
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
amove usr/share/bash-completion
}
sha512sums="bbe2882196f1b3ae39885d38dd86018576bfac5b5e8f16ea10c7dfd197197d0493ae4ce83c969417a4c4239c41dbcfada989063f14e2943c088a7489e43953b7 powertop-2.11.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch"
|