diff options
author | davidovski <david@davidovski.xyz> | 2022-06-03 13:05:13 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-03 13:05:13 +0100 |
commit | 66c326b6d65388e9f1003715ad9675505f01f9d2 (patch) | |
tree | 40d7355cccfa3464902cf339a563e744c28a7101 /repo/asciidoctor | |
parent | fccdaa986f67f820df2914bef851d5fed77abac8 (diff) |
added porting from alpine linux
Diffstat (limited to 'repo/asciidoctor')
-rw-r--r-- | repo/asciidoctor/asciidoctor.xibuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/asciidoctor/asciidoctor.xibuild b/repo/asciidoctor/asciidoctor.xibuild new file mode 100644 index 0000000..bd4f59f --- /dev/null +++ b/repo/asciidoctor/asciidoctor.xibuild @@ -0,0 +1,32 @@ +#!/bin/sh + +NAME="asciidoctor" +DESC="Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats" + +MAKEDEPS="ruby" + +PKG_VER=2.0.17 +SOURCE="https://rubygems.org/downloads/asciidoctor-$PKG_VER.gem" + +package() { + local gemdir="$(ruby -e 'puts Gem.default_dir')" + + gem install \ + --local \ + --install-dir "$PKG_DEST"/$gemdir \ + --ignore-dependencies \ + --verbose \ + --no-document \ + "$BUILD_ROOT"/asciidoctor-$PKG_VER.gem + + rm -rf "$PKG_DEST"/$gemdir/cache + + cd "$PKG_DEST" + local i; for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$PKG_DEST"/usr/bin + ln -s /$i "$PKG_DEST"/usr/bin/ + fi + done +} + |