aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-asciidoctor/APKBUILD
blob: d27717ba3046ba9aba15e913be91b25f31d57b55 (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:
_gemname=asciidoctor
pkgname=ruby-$_gemname
pkgver=0.1.4
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
}

md5sums="1ec84e6ad442791f1ef9300026927ba1  asciidoctor-0.1.4.gem"
sha256sums="2a2d6f9aed31200c9c74e5b81dba1673eda2f7936599df016cbe608dd8e1cf92  asciidoctor-0.1.4.gem"
sha512sums="5a0b8fb13c6fa8f75d691eae1e59447023bb9d1202f0cecef93ae0696f374245bbec7e441f802fbe0c0101335a3ccee6dec352424dac9653170c15940ae3707d  asciidoctor-0.1.4.gem"