# Contributor: Seung Soo Mun # Maintainer: Natanael Copa pkgname=asciidoctor pkgver=1.5.7.1 pkgrel=0 pkgdesc="Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats" url="https://rubygems.org/gems/$pkgname" arch="noarch" license="MIT" options="!check" depends="ruby" source="https://rubygems.org/downloads/$pkgname-$pkgver.gem" package() { local gemdir="$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$pkgdir"/$gemdir \ --ignore-dependencies \ --verbose \ --no-document \ "$srcdir"/$pkgname-$pkgver.gem rm -rf "$pkgdir"/$gemdir/cache cd "$pkgdir" local i; for i in usr/lib/ruby/gems/*/bin/*; do if [ -e "$i" ]; then mkdir -p "$pkgdir"/usr/bin ln -s /$i "$pkgdir"/usr/bin/ fi done } sha512sums="104a320cd2efdb1d01bd3a0a4a144d9946a668a7d7e57d61cba3e424abd73a3fa0c4840ab7719e556d077a943301ef67b5464f1b69bdf6a79eade293d54e9bdc asciidoctor-1.5.7.1.gem"