summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ca4449f05786d1871c746b2402645d94e77f4b7 (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
25
26
27
# Maintainer: Bennett Piater <bennett at piater dot name>

_npmname=hueadm
pkgname=nodejs-$_npmname # All lowercase
pkgver=1.2.0
pkgrel=1
pkgdesc="CLI to control Philips HUE lights"
arch=(any)
url="https://github.com/bahamas10/hueadm"
license=(MIT)
makedepends=('npm')
depends=('nodejs' )
optdepends=()
source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$_npmver.tgz)
md5sums=('e24218e23cd1456f6314f0b21147732d')

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

# vim:set ts=2 sw=2 et: