# Maintainer: Chloe Colman # Contributor: Sampson Crowley # Github Contributor: ahmubashir pkgname=heroku-cli-bin pkgver=8.10.0 pkgrel=1 _commit_id="bb42a3e1e1e45063116016f96eed64357492e396" _builddir="cli-$pkgver-$pkgrel" pkgdesc="CLI to Manage Heroku apps with forced auto-update removed. Packaged before release to save time and bandwidth." arch=('any') url="https://devcenter.heroku.com/articles/heroku-cli" license=('custom' 'ISC') depends=('nodejs') optdepends=('git: Deploying to Heroku') conflicts=('heroku-cli' 'heroku-client-standalone' 'heroku-toolbelt' 'ruby-heroku') source=("https://github.com/ChloeColman/heroku-cli-bin/raw/${_commit_id}/heroku-cli-bin-v$pkgver-$pkgrel.tar.xz") sha256sums=('b495ed323fccd72751e8cf8ade20b4f79c6cebc8d17ceb8c1e88fdefdd90d8ee') sha512sums=('2bedc574fe1009a3038fb343ab6719a4566dfd3414fddbcc72bc45d382386fcafb5428b66e4ddddcf783ceccd3f96a55c064d2a440793104a8f04c6c2e7862a4') options=('!strip') provides=('heroku' 'heroku-cli') package() { install -dm755 "$pkgdir/usr/lib/heroku" install -dm755 "$pkgdir/usr/bin" install -dm755 "$pkgdir/usr/share/licenses/$pkgname" cp -a "$srcdir/heroku" "$pkgdir/usr/lib" # completions local autocompletedir="$srcdir/heroku/autocomplete-scripts" install -Dm644 "$autocompletedir/bash/heroku.bash" "$pkgdir/usr/share/bash-completion/completions/heroku" install -Dm644 "$autocompletedir/zsh/_heroku" "$pkgdir/usr/share/zsh/site-functions/_heroku" ln -sf "../../../lib/heroku/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" ln -sf "../../lib/heroku/bin/run" "$pkgdir/usr/bin/heroku" # Remove empty directories find "${pkgdir}" -type d -empty -delete }