# Contributor: Natanael Copa # Maintainer: Leo pkgname=powertop pkgver=2.10 pkgrel=0 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" source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz musl-fix-headers.patch strerror_r.patch " prepare() { default_prepare sed -i "s:RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY:v$pkgver:" scripts/version ./autogen.sh } build() { cd "$builddir" LIBS="-lintl" ./configure --prefix=/usr --disable-nls make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="ce7b5c4a5c80596c6a78f1c00c107a13dd3f0d9051c7c44333d18a0f0c050c8e148c8b251d59bd49341f20a6a19eb1f956902e8c57110251e9e4f608e0542357 powertop-2.10.tar.gz d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch 0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046 strerror_r.patch"