aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoctor/APKBUILD
blob: d0987384e29952e334a0daa5a922d750d6c86afb (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
37
38
39
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=asciidoctor
pkgname=$_gemname
pkgver=1.5.5
pkgrel=1
pkgdesc="A text processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats."
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby"
makedepends=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

build() {
	return 0
}

package() {
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-document \
		"$srcdir"/$_gemname-$pkgver.gem || return 1

	rm -rf "$pkgdir"/$_gemdir/cache

	cd "$pkgdir"
	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
}

md5sums="c6ef0cdd20c48687d9f9afcb22ca76d0  asciidoctor-1.5.5.gem"
sha256sums="87effa3de95919df880aab04c6c29c89255ce671abce361da476208734a5424e  asciidoctor-1.5.5.gem"
sha512sums="31876c94dab7eba96baaa273e02a54afb23b5b666eb504e26518103350c9c872db9c1d88965a6d8023fa02a1eee05a4abe984b545859d8d92897d6d799f70335  asciidoctor-1.5.5.gem"