blob: 2340d0d5eed7ddf52dafdb3ce9f2843af771617d (
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
41
|
# Maintainer: Sampson Crowley <sampsonsprojects@gmail.com>
pkgname=heroku-cli-bin
pkgver=7.45.0
pkgrel=3
_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')
makedepends=('npm')
optdepends=('git: Deploying to Heroku')
conflicts=('heroku-cli' 'heroku-client-standalone' 'heroku-toolbelt' 'ruby-heroku')
source=("https://github.com/SampsonCrowley/heroku-cli-bin/raw/v$pkgver-$pkgrel/heroku-cli-bin-v$pkgver-$pkgrel.tar.xz")
sha256sums=('1ae4edbfa659360e456df4dbf39ef4b1ab09b4b1bfda64265d3eb90aff85680f')
sha512sums=('b0561f6a85c1dde53a078c87ce7f0abf62ae607a7d52e34083ff5ab392bd7103e880ee4f6b87d3ed3502b629fdba06c159ae0e98e20286392bb9316eb928e613')
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"
herokulibdir="$pkgdir/usr/lib"
for foundherokudir in $(find "$srcdir/heroku" -mindepth 1 -type d) ; do
herokuinstalldir="${foundherokudir/$srcdir/$herokulibdir}"
install -dm755 "$herokuinstalldir"
done
for foundherokufile in $(find "$srcdir/heroku" -mindepth 1 -type f) ; do
herokuinstallperm=$(stat -c "%a" "$foundherokufile")
herokuinstallfile="${foundherokufile/$srcdir/$herokulibdir}"
install -Dm$herokuinstallperm "$foundherokufile" "$herokuinstallfile"
done
ln -sf "../../../lib/heroku/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
ln -sf "../../lib/heroku/bin/run" "$pkgdir/usr/bin/heroku"
}
|