summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a630589c710dac61722f1b1cf5e3b5bc6b46e266 (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
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>

pkgname=ruby-awesome_print
pkgver=1.6.1
pkgrel=1
pkgdesc="Pretty print your Ruby objects with style"
arch=('any')
depends=('ruby')
url="https://github.com/michaeldv/awesome_print"
license=('MIT')
source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
sha256sums=('0d8be8d9b270b900a337356cb9453ffdaf219d29902f14bbe4f120ecfdd38fef')
noextract=("${pkgname#*-}-${pkgver}.gem")

package() {
  cd "$srcdir"

  msg2 'Installing...'
  gem install \
    --no-user-install \
    --ignore-dependencies \
    -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" \
    ${pkgname#*-}-$pkgver.gem
}