summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c7a05ca4c7d25481f444f6b986b694bf6c0c038 (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
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: ivan <qw7692336@gmail.com>

_gemname=commander
pkgname=ruby-$_gemname-4.1.5
pkgver=4.1.5
pkgrel=1
pkgdesc='The complete solution for Ruby command-line executables'
arch=(any)
url='http://visionmedia.github.com/commander'
license=()
depends=(ruby ruby-highline-1.6)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('d5506fd05de0c6e835926c9b1b38f1005e11803b')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
  # non-HEAD version should not install any files in /usr/bin
  rm -r "$pkgdir/usr/bin/"
}