# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-builder _gemname=builder pkgver=3.2.4 pkgrel=4 pkgdesc="Provide a simple way to create XML markup and data structures" url="https://github.com/jimweirich/builder" arch="noarch" license="MIT" depends="ruby" # There's no gemspec in the source repository, that's why we use gem. source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" local geminstdir="$gemdir/gems/$_gemname-$pkgver" gem install \ --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ "$srcdir"/$_gemname-$pkgver.gem rm -rf "$gemdir"/cache \ "$geminstdir"/doc \ "$geminstdir"/rakelib \ "$geminstdir"/test \ "$geminstdir"/CHANGES \ "$geminstdir"/*LICENSE \ "$geminstdir"/Rakefile \ "$geminstdir"/*.md } sha512sums="730317ec0a4af33e183283e309e38d47deb08db0ab6bd6dfebdedcebb7470bd383c6c1d32ad674adc43298e0f86930b97c652fff9827ca8890db2d1d68e792f1 builder-3.2.4.gem"