mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:57:17 +08:00
update pmtools
This commit is contained in:
parent
330919889e
commit
a4358edf54
@ -5,23 +5,35 @@
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=pmtools
|
||||
pkgver=20100825
|
||||
pkgver=20110323
|
||||
pkgrel=1
|
||||
pkgdesc="A small collection of ACPI power management test and investigation tools"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://acpi.sourceforge.net/dsdt/index.php"
|
||||
license=('GPL2')
|
||||
source=(http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/$pkgname-$pkgver.tar.bz2)
|
||||
md5sums=('b1095988a56b70a5e66dd5fd8a670fed')
|
||||
md5sums=('9ed64a1c04bb9597257786de034a77a9')
|
||||
|
||||
build() {
|
||||
cd $startdir/src/$pkgname
|
||||
make || return 1
|
||||
(cd madt && make) || return 1
|
||||
cd $srcdir/$pkgname
|
||||
patch -p1 <<EOF
|
||||
diff -wbBur pmtools/turbostat/Makefile pmtools.my/turbostat/Makefile
|
||||
--- pmtools/turbostat/Makefile 2010-11-24 05:36:50.000000000 +0000
|
||||
+++ pmtools.my/turbostat/Makefile 2010-11-24 16:42:05.000000000 +0000
|
||||
@@ -1,3 +1,5 @@
|
||||
+all: turbostat
|
||||
+
|
||||
turbostat : turbostat.c
|
||||
|
||||
clean :
|
||||
EOF
|
||||
|
||||
install -D -m755 acpidump/acpidump $startdir/pkg/usr/sbin/acpidump && \
|
||||
install -D -m755 acpixtract/acpixtract $startdir/pkg/usr/sbin/acpixtract && \
|
||||
install -D -m755 madt/madt $startdir/pkg/usr/sbin/madt && \
|
||||
install -D -m755 pmtest/pmtest $startdir/pkg/usr/sbin/pmtest && \
|
||||
install -D -m755 turbostat/turbostat $startdir/pkg/usr/sbin/turbostat
|
||||
make
|
||||
(cd madt && make)
|
||||
|
||||
install -D -m755 acpidump/acpidump $pkgdir/usr/sbin/acpidump
|
||||
install -D -m755 acpixtract/acpixtract $pkgdir/usr/sbin/acpixtract
|
||||
install -D -m755 madt/madt $pkgdir/usr/sbin/madt
|
||||
install -D -m755 pmtest/pmtest $pkgdir/usr/sbin/pmtest
|
||||
install -D -m755 turbostat/turbostat $pkgdir/usr/sbin/turbostat
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user