# Maintainer: Rhys Kenwell pkgname=heroku-cli pkgver=7.22.7 _builddir=cli-${pkgver} pkgrel=1 pkgdesc="a tool for creating and managing Heroku apps from the command line" arch=('x86_64') url="https://devcenter.heroku.com/articles/heroku-cli" license=('custom' 'ISC') depends=('nodejs') makedepends=('npm') optdepends=('git: Deploying to Heroku') conflicts=('heroku-client-standalone' 'heroku-toolbelt' 'ruby-heroku') source=("https://registry.npmjs.org/heroku/-/heroku-$pkgver.tgz") sha256sums=('4fc6152831312ce48d0ed92e0dc707936f2e1e775c0fa3b70a4486e26d6c844f') noextract=("heroku-$pkgver.tgz") options=('!strip') package() { npm install -g --user root --prefix "$pkgdir/usr" heroku-$pkgver.tgz mkdir -p "$pkgdir/usr/share/licenses/$pkgname" ln -s "../../../lib/node_modules/heroku/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" # npm makes some directories world writable find "$pkgdir/usr" -type d -exec chmod 755 '{}' + }