aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoctor/APKBUILD
blob: a9f9f465c04b99cc81155979d7b2fc04d4ee1a88 (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
40
41
42
43
44
45
46
47
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=asciidoctor
pkgname=$_gemname
pkgver=1.5.2
pkgrel=0
pkgdesc="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"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_realname-$pkgver

build() {
	return 0
}

package() {
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
	mkdir -p "$pkgdir" || return 1

	gem install --local --install-dir "$pkgdir"/$_gemdir \
		--ignore-dependencies --verbose --no-rdoc --no-ri \
		"$srcdir"/$_gemname-$pkgver.gem || return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths

	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="19e93c0003301e0188dedde3924fa39d  asciidoctor-1.5.2.gem"
sha256sums="c987aa9d9ad1fd1135a51d28cc3795a217d34bacc2606e13e13638bbe54a4943  asciidoctor-1.5.2.gem"
sha512sums="763c657add887961fb6a6806c803e5c0fbcc92a4ecbfabb14e8f9acf037c4b7c9316ed11788c9e671cc82d711faadc17d597e1bc4b1d27b9b0f1cc84442dd3cf  asciidoctor-1.5.2.gem"