blob: 4d51261777713825dc0f95a8620abc51b07fe667 (
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=2.0.7
pkgrel=0
pkgdesc="Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats"
url="https://rubygems.org/gems/$pkgname"
arch="noarch"
license="MIT"
options="!check"
depends="ruby"
source="https://rubygems.org/downloads/$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="8e2cf10d3ade8d2f0b089cabc27e4ef23df0986cb3a8f5024a35f7c3d7b88015deda1bd4eaf7c7bbbc7611e32b4ca5bd334a23da1fd8d750d02f71fc04f72437 asciidoctor-2.0.7.gem"
|