aboutsummaryrefslogtreecommitdiffstats
path: root/main/powertop/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/powertop/APKBUILD')
-rw-r--r--main/powertop/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/main/powertop/APKBUILD b/main/powertop/APKBUILD
index caf8383b0d..1f49d9dbe5 100644
--- a/main/powertop/APKBUILD
+++ b/main/powertop/APKBUILD
@@ -1,22 +1,25 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
-# Maintainer:
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=powertop
-pkgver=2.9
-pkgrel=1
+pkgver=2.10
+pkgrel=0
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
arch="all"
-license="GPL-2.0"
-depends=
+license="GPL-2.0-only"
makedepends="linux-headers ncurses-dev pciutils-dev zlib-dev libnl-dev
- gettext-dev"
-install=""
+ gettext-dev automake autoconf libtool"
subpackages="$pkgname-doc"
-source="https://01.org/sites/default/files/downloads/$pkgname/$pkgname-v$pkgver.tar.gz
+source="$pkgname-$pkgver.tar.gz::https://github.com/fenrus75/powertop/archive/v$pkgver.tar.gz
musl-fix-headers.patch
strerror_r.patch
"
-builddir="$srcdir"/$pkgname-v$pkgver
+
+prepare() {
+ default_prepare
+ sed -i "s:RUN-VERSION-SCRIPT-IN-GIT-REPOSITORY-ONLY:v$pkgver:" scripts/version
+ ./autogen.sh
+}
build() {
cd "$builddir"
@@ -29,6 +32,6 @@ package() {
make DESTDIR="$pkgdir" install
}
-sha512sums="783af538c44e3fae7215a5b4247eb32a72e02150b3f297e6b9777a450823dd30aca014601892c0e80937a366eed95b42b622c68161d53e905ad4fbcb574b26f5 powertop-v2.9.tar.gz
+sha512sums="ce7b5c4a5c80596c6a78f1c00c107a13dd3f0d9051c7c44333d18a0f0c050c8e148c8b251d59bd49341f20a6a19eb1f956902e8c57110251e9e4f608e0542357 powertop-2.10.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch
0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046 strerror_r.patch"