# Maintainer: Sampson Crowley pkgname=heroku-cli-bin pkgver=7.45.0 pkgrel=2 _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=('b19d665319b7a65e7314a0821a9f0b0917bfb2e32305119e98939190d3f4afd8') sha512sums=('e60a8b4bc05c664e422b06b690f9b99d53979cc503fe7cbf11c02dee4aec0ad3332331fccd17118678d135e730fc6a16072644cf3fbf90f0c0aa6279dcedcbd8') 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" }