blob: 9c33801cb0875ceb5969be2f45e744eee4e48fdf (
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
35
36
37
38
39
40
|
# Maintainer: Chloe Colman <chloe.colman7@gmail.com>
# Contributor: Sampson Crowley <sampsonsprojects@gmail.com>
# Github Contributor: ahmubashir <https://github.com/amubashir>
pkgname=heroku-cli-bin
pkgver=10.10.1
pkgrel=1
_commit_id="7071103450594213c958c6236b5a536358a200c5"
_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=('4849617161bcc2cfa56a6cefc524c217f790b09782c3633afd42f85bce8b4000')
sha512sums=('c5f1385dab70f8bc9aafa053c7d6c26b9c75aaa92670a9e01de3f8cfe23729e0874c33cb42d9362f4f37a06a59d9d8ab31f3170d5d5fca151bfa3695cecdaceb')
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
}
|