# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-mustache _gemname=mustache pkgver=1.1.0 pkgrel=1 pkgdesc="Logic-less Ruby templates" url="https://mustache.github.io/" arch="noarch" license="MIT" depends="ruby" checkdepends="ruby-minitest ruby-rake ruby-rdoc" source="$pkgname-$pkgver.tar.gz::https://github.com/mustache/mustache/archive/v$pkgver.tar.gz skip-simplecov.patch" builddir="$srcdir/$_gemname-$pkgver" build() { gem build $_gemname.gemspec } check() { rake test } 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 \ $_gemname # Remove unnecessary files and rubbish... cd "$gemdir" rm -r cache build_info doc cd "$geminstdir" rm -r test man Rakefile *.md } sha512sums="a6465aef61083b5eb56f7495917af7afdef5dda8bceec591738b2fb5ac58ef757a0339fc296f29159670414dbae361792db91886d43d1399ce1c911aa50f2534 ruby-mustache-1.1.0.tar.gz 1d457e4f059aabb76f2b84fbebb513a3872715b83508528f06c8de5ea98262a4e266c154fa8cf3f5cae0a9fff6e0b82e0c2278f7979ac27a60b202b825b41e5e skip-simplecov.patch"