# Maintainer: Yufan You # Contributor: Sam Whited # Contributor: j605 _npmname=triton pkgname=nodejs-triton pkgver=7.15.1 pkgrel=1 pkgdesc="Triton client tool and node.js library" arch=('any') url="https://github.com/joyent/node-triton" license=('MPL') depends=('nodejs') makedepends=('npm') source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) sha256sums=('e325641d2ba183c484597e196ee74ecf67e6a0bcb459dd7ef49d23c509eec984') package() { cd "$srcdir" local _npmdir="$pkgdir/usr/lib/node_modules/" mkdir -p "$_npmdir" cd "$_npmdir" npm install -g --prefix "$pkgdir/usr" "$srcdir/$_npmname-$pkgver.tgz" # Remove the files that contain references to $pkgdir rm "$pkgdir/usr/lib/node_modules/$_npmname/node_modules/dtrace-provider/build/Makefile" rm "$pkgdir/usr/lib/node_modules/$_npmname/node_modules/dtrace-provider/build/config.gypi" chown -R root:root "${pkgdir}" }