summaryrefslogtreecommitdiff
path: root/community/cpuburn
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/cpuburn
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cpuburn')
-rw-r--r--community/cpuburn/PKGBUILD38
-rw-r--r--community/cpuburn/cpuburn.patch41
2 files changed, 79 insertions, 0 deletions
diff --git a/community/cpuburn/PKGBUILD b/community/cpuburn/PKGBUILD
new file mode 100644
index 000000000..b29af70a5
--- /dev/null
+++ b/community/cpuburn/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Filip Wojciechowski, filip at loka dot pl
+
+pkgname=cpuburn
+pkgver=1.4a
+pkgrel=1
+pkgdesc="CPU testing utilities in optimized assembler for maximum loading of CPUs"
+arch=('i686' 'x86_64')
+url="http://pages.sbcglobal.net/redelm/"
+license=('GPL')
+depends=()
+makedepends=('tar') # needs to be extracted manually because of malformed source file name
+source=(http://pages.sbcglobal.net/redelm/cpuburn_${pkgver/./_}_tar.gz cpuburn.patch)
+noextract=($pkgname_${pkgver/./_}_tar.gz)
+md5sums=('a9e1df40c660324eb08e91847cbc41b9'
+ 'f3c77db7592ac02ee83958f07ceb8986')
+
+build() {
+ cd "$srcdir"
+
+ # Workaround for malformed source file name
+ mv cpuburn_${pkgver/./_}_tar.gz "$pkgname_$pkgver.tar.gz"
+ tar zxf "$pkgname_$pkgver.tar.gz"
+
+ cd "$pkgname-$pkgver"
+ # a patch from debian/ubuntu patchset
+ patch -Np1 -i ../cpuburn.patch
+ make
+ install -Dm755 burnBX $pkgdir/usr/bin/burnBX
+ install -Dm755 burnK6 $pkgdir/usr/bin/burnK6
+ install -Dm755 burnK7 $pkgdir/usr/bin/burnK7
+ install -Dm755 burnMMX $pkgdir/usr/bin/burnMMX
+ install -Dm755 burnP5 $pkgdir/usr/bin/burnP5
+ install -Dm755 burnP6 $pkgdir/usr/bin/burnP6
+ install -Dm644 README $pkgdir/usr/share/doc/$pkgname/README
+ install -Dm644 Design $pkgdir/usr/share/doc/$pkgname/Design
+}
diff --git a/community/cpuburn/cpuburn.patch b/community/cpuburn/cpuburn.patch
new file mode 100644
index 000000000..4bcd978b7
--- /dev/null
+++ b/community/cpuburn/cpuburn.patch
@@ -0,0 +1,41 @@
+--- cpuburn-1.4.orig/burnP6.S
++++ cpuburn-1.4/burnP6.S
+@@ -69,6 +69,7 @@
+ push %eax # *BSD syscall
+ int $0x80
+ #endif
++.data # Data allocation
+ .align 32,0
+ half: .long 0x7fffffff,0
+ e: .long 0xffffffff,0x3fdfffff
+--- cpuburn-1.4.orig/burnK6.S
++++ cpuburn-1.4/burnK6.S
+@@ -68,6 +68,7 @@
+ push %eax
+ int $0x80
+ #endif
++.data # Data allocation
+ .align 32,0
+ half: .long 0x7fffffff,0
+ e: .long 0xffffffff,0x3fdfffff
+--- cpuburn-1.4.orig/Makefile
++++ cpuburn-1.4/Makefile
+@@ -1,3 +1,3 @@
+ all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
+ .S:
+- gcc -s -nostdlib -o $@ $<
++ gcc -m32 -s -nostdlib -o $@ $<
+--- cpuburn-1.4.orig/burnK7.S
++++ cpuburn-1.4/burnK7.S
+@@ -74,10 +74,9 @@
+ push %eax
+ int $0x80
+ #endif
++.data # Data allocation
+ .align 32,0
+ .fill 64
+ half: .long 0x7fffffff,0
+ e: .long 0xffffffff,0x3fdfffff
+ rt: .long 0xffffffff,0x3fefffff
+-
+-