mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
32 lines
900 B
Bash
32 lines
900 B
Bash
pkgname=powertop
|
|
pkgver=2.9
|
|
pkgrel=1
|
|
pkgdesc="Tool that finds the software that makes your laptop use more power than necessary"
|
|
arch=('x86_64')
|
|
url="https://01.org/powertop"
|
|
license=('GPL2')
|
|
depends=('gcc-libs' 'libnl' 'ncurses' 'pciutils')
|
|
categories=('utils')
|
|
screenshot=('https://01.org/powertop/sites/default/files/resize/users/u8/powertop20_overview-640x381.png')
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz)
|
|
sha256sums=('5daf009271a028c55f0d5da7e5cf85ce08f832831957828f0379faf721f5bad1')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"/$pkgname-$pkgver
|
|
# version 2.9 info fix
|
|
sed -i 's:RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY:v2.9:' scripts/version
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./autogen.sh
|
|
./configure --prefix=/usr --sbindir=/usr/bin
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
}
|