summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d597ac413ca7b76160bca20d1811b60e2c58f2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}