aboutsummaryrefslogtreecommitdiffstats
path: root/main/powertop/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/powertop/APKBUILD')
-rw-r--r--main/powertop/APKBUILD34
1 files changed, 9 insertions, 25 deletions
diff --git a/main/powertop/APKBUILD b/main/powertop/APKBUILD
index 7d80082e2e..a841c7ba2d 100644
--- a/main/powertop/APKBUILD
+++ b/main/powertop/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=powertop
-pkgver=2.8
+pkgver=2.9
pkgrel=0
pkgdesc="Power consumption monitor"
url="https://01.org/powertop"
@@ -12,39 +12,23 @@ makedepends="linux-headers ncurses-dev pciutils-dev zlib-dev libnl-dev
gettext-dev"
install=""
subpackages="$pkgname-doc"
-source="https://01.org/sites/default/files/downloads/$pkgname/$pkgname-$pkgver.tar.gz
+source="https://01.org/sites/default/files/downloads/$pkgname/$pkgname-v$pkgver.tar.gz
musl-fix-headers.patch
strerror_r.patch
"
-
-_builddir="$srcdir"/powertop-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$pkgname-v$pkgver
build() {
- cd "$_builddir"
- LIBS="-lintl" ./configure --prefix=/usr --disable-nls || return 1
- make || return 1
+ cd "$builddir"
+ LIBS="-lintl" ./configure --prefix=/usr --disable-nls
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="c55fedb69203e480801b18bd7b886241 powertop-2.8.tar.gz
-2c73602679df7fc10d5112f7a8771903 musl-fix-headers.patch
-9cd5d96434218c1a85275ff7fea72eb2 strerror_r.patch"
-sha256sums="a87b563f73106babfa3e74dcf92f252938c061e309ace20a361358bbfa579c5a powertop-2.8.tar.gz
-aeecfe22758334e4290c35dcbc5418a3595645e2a7e96c846f16cb5d19c99a09 musl-fix-headers.patch
-dcdde9ea35b25d83fdb3521601590218ce4a3ce7fd414aa08ac28295196cedcf strerror_r.patch"
-sha512sums="253d0e15f0972cf8639735c510f4884d49a0da76c31dd2f39603e2297e6c6f0b9fa283c7b3cb04a431c91f8296275c0adaecc4c3e9ea132c0c31064f7f432c80 powertop-2.8.tar.gz
+sha512sums="783af538c44e3fae7215a5b4247eb32a72e02150b3f297e6b9777a450823dd30aca014601892c0e80937a366eed95b42b622c68161d53e905ad4fbcb574b26f5 powertop-v2.9.tar.gz
d3bb0e8eaa56fe9ef5aed5d7bea4860be2135fc163ec0c669dc2d01f5ee46ee22ee58cac0835518dc1a4e2939748cf57f2ab37e8d0d879bbc0161d66db7d1919 musl-fix-headers.patch
0c3a67cae24ec675c71160bfb7222f32a01f59105726c6676b1a3c75ab91073782a593ec319d0e87e5391dbf455b900f6c18459f1fd58ac5789e82aa905c1046 strerror_r.patch"