# Contributor: Seung Soo Mun # Maintainer: Natanael Copa pkgname=asciidoctor pkgver=1.5.6.2 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="5eabe097d4f98b8249d7d7c0cad769fa91c95a9bb020baed83b53b0eebea0736321261e51210813395063cd7e1baa9d1a06a7daaaf754aa46eff17784710574d asciidoctor-1.5.6.2.gem"