blob: 45453cf739cacc2312b3edabb4f039e97f82fe90 (
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
28
29
30
31
32
33
34
|
# Maintainer: j605
_npmname=triton
pkgname=nodejs-$_npmname
pkgver=6.2.0
pkgrel=1
pkgdesc="triton is a CLI tool for working with the CloudAPI for Joyent's Triton Public Cloud and Private Cloud"
arch=('any')
url="https://github.com/joyent/node-triton"
license=('MPL')
depends=('nodejs')
makedepends=('npm')
source=($pkgname-$pkgver.tar.gz::"https://github.com/joyent/node-triton/archive/$pkgver.tar.gz")
md5sums=('f09e2bfafe1ec1c59cdf43c6b02500a1')
build() {
cd node-$_npmname-$pkgver
npm install --no-optional
}
package() {
cd node-$_npmname-$pkgver
mkdir -p "${pkgdir}"/usr/{bin,lib/node_modules/triton/}
cp -r * "${pkgdir}"/usr/lib/node_modules/triton/
mkdir -p "${pkgdir}"/etc/bash_completion.d
./bin/triton completion > "${pkgdir}"/etc/bash_completion.d/triton
# security issue (see wiki)
find "${pkgdir}"/usr -type d -exec chmod 755 {} +
ln -s ../lib/node_modules/triton/bin/triton "${pkgdir}"/usr/bin/triton
}
|