summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD18
2 files changed, 32 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..165857ab578
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+# Generated by mksrcinfo v8
+# Wed Oct 28 00:26:49 UTC 2015
+pkgbase = speed-test
+ pkgdesc = Test your internet connection speed and ping using speedtest.net from the CLI
+ pkgver = 1.5.0
+ pkgrel = 1
+ url = https://github.com/sindresorhus/speed-test/
+ arch = any
+ license = MIT
+ depends = nodejs
+ depends = npm
+
+pkgname = speed-test
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0d597ac413c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,18 @@
+# Maintainer: John Jenkins twodopeshaggy@gmail.com
+_npmname=speed-test
+pkgname=speed-test
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="Test your internet connection speed and ping using speedtest.net from the CLI"
+arch=(any)
+url="https://github.com/sindresorhus/speed-test/"
+license=(MIT)
+depends=('nodejs' 'npm')
+
+package() {
+ cd $srcdir
+ local _npmdir="$pkgdir/usr/lib/node_modules/"
+ mkdir -p "$_npmdir"
+ cd "$_npmdir"
+ npm install -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+}