summaryrefslogblamecommitdiff
path: root/system/asciidoctor/APKBUILD
blob: 16e257f547b6ca091a2d43d206bbf52622cfd856 (plain) (tree)
1
2
3
4


                                                  
            






























                                                                                                    
                                                                                                                                                                    
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=asciidoctor
pkgver=1.5.8
pkgrel=0
pkgdesc="A text processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats"
url="https://rubygems.org/gems/$pkgname"
arch="noarch"
options="!check"  # can't test in this packaging format; package differently
license="MIT"
depends="ruby"
source="http://gems.rubyforge.org/gems/$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="34ff0df98ff9ebb2d3640629870cd848cf2f4b617564a42e7b30b6cf60c01d1188b4cc695af49550e054c9e833accc1ed5d622b4952ece3da99c8ed98af769ac  asciidoctor-1.5.8.gem"