summaryrefslogtreecommitdiff
path: root/system/asciidoctor/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-24 03:12:56 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-24 03:12:56 -0500
commitc7e518c23d6498836787a16251e9dda540d3cf7e (patch)
treee8ed8c539214755497904d473986d1807c3ab1e4 /system/asciidoctor/APKBUILD
parent965d80ca4ac1c981343de938f066f5c6627a716a (diff)
downloadpackages-c7e518c23d6498836787a16251e9dda540d3cf7e.tar.gz
packages-c7e518c23d6498836787a16251e9dda540d3cf7e.tar.bz2
packages-c7e518c23d6498836787a16251e9dda540d3cf7e.tar.xz
packages-c7e518c23d6498836787a16251e9dda540d3cf7e.zip
system/asciidoctor: pull in for git
Diffstat (limited to 'system/asciidoctor/APKBUILD')
-rw-r--r--system/asciidoctor/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/system/asciidoctor/APKBUILD b/system/asciidoctor/APKBUILD
new file mode 100644
index 000000000..cba94fb89
--- /dev/null
+++ b/system/asciidoctor/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Seung Soo Mun <hamletmun@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=asciidoctor
+pkgver=1.5.7.1
+pkgrel=0
+pkgdesc="A text processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats"
+url="https://rubygems.org/gems/$pkgname"
+arch="noarch"
+options="!check" # can't test in this packaging format; package differently
+license="MIT"
+depends="ruby"
+source="http://gems.rubyforge.org/gems/$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="104a320cd2efdb1d01bd3a0a4a144d9946a668a7d7e57d61cba3e424abd73a3fa0c4840ab7719e556d077a943301ef67b5464f1b69bdf6a79eade293d54e9bdc asciidoctor-1.5.7.1.gem"