summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 18 insertions, 0 deletions
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
+}