# Generated by gem2arch (https://github.com/anatol/gem2arch) # Maintainer: Matej Grabovsky # Contributor: Anatol Pomozov # Contributor: Alexsandr Pavlov _gemname=sprockets pkgname=ruby-$_gemname pkgver=3.7.0 pkgrel=1 pkgdesc='Rack-based asset packaging system' arch=(any) url='http://getsprockets.org/' license=(MIT) depends=(ruby ruby-concurrent-ruby ruby-rack) options=(!emptydirs) source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) noextract=($_gemname-$pkgver.gem) sha1sums=('259e995d1b3507430d7bbdec10270923e56a1962') 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" install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }