summaryrefslogtreecommitdiff
path: root/community/pmtools
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/pmtools
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/pmtools')
-rw-r--r--community/pmtools/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/pmtools/PKGBUILD b/community/pmtools/PKGBUILD
new file mode 100644
index 000000000..d03108426
--- /dev/null
+++ b/community/pmtools/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 33452 2010-11-24 16:48:38Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Andrea Scarpino <bash.lnx@gmail.com>
+# Contributor: Sebastian Pohle <naitsabes@imapmail.org>
+
+pkgname=pmtools
+pkgver=20101124
+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')
+depends=('perl')
+source=(http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/$pkgname-$pkgver.tar.bz2)
+md5sums=('45e62eae9aca4fce84cb102c117f5796')
+
+build() {
+ 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
+
+ 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
+}