Subject: [alpine-devel] [PATCH] testing/speedometer: new aport

From: Matt Smith <[email-masked]>
Date: Mon, 8 Nov 2010 21:08:35 -0600

---
 testing/speedometer/APKBUILD                       |   34 ++++++++++++++++++++
 .../popen2-deprecated-speedometer-2.6.patch        |   14 ++++++++
 2 files changed, 48 insertions(+), 0 deletions(-)
 create mode 100644 testing/speedometer/APKBUILD
 create mode 100644 testing/speedometer/popen2-deprecated-speedometer-2.6.patch

diff --git a/testing/speedometer/APKBUILD b/testing/speedometer/APKBUILD
new file mode 100644
index 0000000..0292c1d
--- /dev/null
+++ b/testing/speedometer/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Matt Smith <[email-masked]>
+# Maintainer: Matt Smith <[email-masked]>
+pkgname=speedometer
+pkgver=2.6
+pkgrel=0
+pkgdesc="Measure and display the rate of data across a network connection or data being stored in a file"
+url="http://excess.org/speedometer/"
+license="LGPL"
+depends="python urwid"
+makedepends="python-dev"
+install=
+subpackages=
+source="http://excess.org/$pkgname/$pkgname-$pkgver.tar.gz
+	popen2-deprecated-speedometer-2.6.patch
+	"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+	cd "$_builddir"
+	patch -p1 -i "$startdir"/popen2-deprecated-speedometer-2.6.patch
+}
+
+build() {
+	return 0
+}
+
+package() {
+	cd "$_builddir"
+	install -m755 -D speedometer.py "$pkgdir"/usr/bin/speedometer
+}
+
+md5sums="e30c46e8bce8dcf26532c7c06ecee50c  speedometer-2.6.tar.gz
+c60783e85e9ecf2560f5a79530687cb1  popen2-deprecated-speedometer-2.6.patch"
diff --git a/testing/speedometer/popen2-deprecated-speedometer-2.6.patch b/testing/speedometer/popen2-deprecated-speedometer-2.6.patch
new file mode 100644
index 0000000..4e3eba7
--- /dev/null
+++ b/testing/speedometer/popen2-deprecated-speedometer-2.6.patch
@@ -0,0 +1,14 @@
+
+# Patch comes from upstream:
+# https://excess.org/hg/speedometer/raw-rev/ccda212032d1
+
+--- a/speedometer.py	Wed Nov 03 17:17:27 2010 -0400
++++ b/speedometer.py	Wed Nov 03 17:21:04 2010 -0400
+@@ -18,7 +18,6 @@
+ import time
+ import sys
+ import os
+-import popen2
+ import string
+ import math
+ import re
-- 
1.7.3.2

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---