summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6c248e528cd57fdc3f668c03952bfe76393ee0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: Kyle Sferrazza <kyle.sferrazza@gmail.com>
# Contributor: John Jenkins twodopeshaggy@gmail.com

_npmname=speed-test
pkgname=speed-test
pkgver=2.1.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
}