# Generated by gem2arch (https://github.com/anatol/gem2arch) # Maintainer: Matej Grabovsky # Contributor: Anatol Pomozov # Contributor: Nathan Phillip Brink _gemname=sprockets-rails pkgname=ruby-$_gemname pkgver=3.0.3 pkgrel=1 pkgdesc='Sprockets Rails integration' arch=(any) url='https://github.com/rails/sprockets-rails' license=(MIT) depends=(ruby ruby-sprockets ruby-actionpack ruby-activesupport) options=(!emptydirs) source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) noextract=($_gemname-$pkgver.gem) sha1sums=('bec35a7d27f4e2433360ad7c2529523186224f4c') 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" }