summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89202f48459c2349f2d2093858fb57d3aa3fcea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Fabius
_npmname=is-up-cli
_npmver=3.0.0
pkgname=nodejs-is-up-cli
pkgver=3.0.0
pkgrel=2
pkgdesc="Check whether a website is up or down using the isitup.org API"
arch=(any)
url="https://github.com/sindresorhus/is-up-cli"
license=('MIT')
makedepends=('npm')
depends=('nodejs')
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$_npmver.tgz)
noextract=($_npmname-$_npmver.tgz)
sha256sums=(04ebc7bb7363f07a452463263d1c92ffd52fcd469af30bd45dbe860d4c4b932e)

package() {
  cd $srcdir
  local _npmdir="$pkgdir/usr/lib/node_modules/"
  mkdir -p $_npmdir
  cd $_npmdir
  npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
}