blob: 7f77c1669c9e2452798b75aa133d647eeb65c0cd (
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
|
# Maintainer: Vlad M. <vlad@archlinux.net>
# Contributor: pisuka <tekmon@gmail.com>
pkgname=heroku-toolbelt
pkgver=3.40.9
pkgrel=1
pkgdesc="Everything you need to get started using Heroku (including foreman)"
arch=('any')
url="https://toolbelt.heroku.com"
license=('MIT' 'APACHE' 'RUBY' 'PerlArtistic' 'GPL' 'custom')
depends=("ruby>=1.9")
makedepends=("ruby-bundler")
optdepends=('git')
conflicts=('ruby-heroku' 'ruby-foreman' 'heroku-client')
source=('Gemfile' 'Gemfile.lock')
sha256sums=('1d06d0e7ed351fd17841f0bae5cb688d3fab18214736676c6658091febb9638e'
'76216cb2c307c5747bbbfcac68b25cf5c842a32a20d083065020778cc93d7770')
package() {
cd "$pkgdir"
mkdir -p "usr/lib/ruby/vendor_ruby/$pkgname" "usr/bin" "usr/share/man/man1"
cd "usr/lib/ruby/vendor_ruby/$pkgname"
cp -L "$srcdir"/Gemfile* .
bundle install --standalone --deployment --binstubs="$pkgdir/usr/bin"
cd "$pkgdir"
find "usr/bin" -type f ! -name heroku ! -name foreman -execdir rm "{}" +
find "usr/lib/ruby/vendor_ruby/heroku-toolbelt/vendor/bundle/ruby" -path "*/gems/*/man/*" -exec ln -st "usr/share/man/man1/" "/{}" \;
}
|