aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoctor/APKBUILD
blob: 0cd0fb4f39b87c43269ca8bb46e62440ca8946fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoctor
pkgver=1.5.6.1
pkgrel=0
pkgdesc="A text processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats"
url="http://rubygems.org/gems/$pkgname"
arch="noarch"
license="MIT"
options="!check"
depends="ruby"
source="http://gems.rubyforge.org/gems/$pkgname-$pkgver.gem"

package() {
	local gemdir="$(ruby -rubygems -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="cb23ab539b16b064e4a21575420abdaab34e20b7650a43b47df68ded1a424d1ab265c88102d4f3d3422bd30952fd93db7de254d61fdc253d17ffd93f1345bcdf  asciidoctor-1.5.6.1.gem"