29 lines
696 B
Plaintext
29 lines
696 B
Plaintext
# Description: Finds the software component(s) that make your laptop use more power than necessary
|
|
# URL: https://01.org/powertop/
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
# Packager: Mikhail Kolesnik, mike at openbunker dot org
|
|
# Depends on: ncurses libnl
|
|
|
|
name=powertop
|
|
version=2.7
|
|
release=1
|
|
source=(
|
|
https://01.org/sites/default/files/downloads/$name/$name-$version.tar.gz
|
|
$name-autotune.patch
|
|
)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# fix crash with --auto-tune:
|
|
# https://lists.01.org/pipermail/powertop/2014-December/001730.html
|
|
patch -p1 -i $SRC/$name-autotune.patch
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-nls
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|