new package: asciidoctor
This commit is contained in:
parent
b27684d086
commit
edcc4db58e
25
packages/asciidoctor/build.sh
Normal file
25
packages/asciidoctor/build.sh
Normal file
@ -0,0 +1,25 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://asciidoctor.org/
|
||||
TERMUX_PKG_DESCRIPTION="An implementation of AsciiDoc in Ruby"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_VERSION=2.0.10
|
||||
TERMUX_PKG_DEPENDS="ruby"
|
||||
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
_RUBY_VERSION=2.6
|
||||
|
||||
termux_step_make_install() {
|
||||
local gemdir="$TERMUX_PREFIX/lib/ruby/gems/${_RUBY_VERSION}.0"
|
||||
|
||||
rm -rf "$gemdir/asciidoctor-$TERMUX_PKG_VERSION"
|
||||
rm -rf "$gemdir/doc/asciidoctor-$TERMUX_PKG_VERSION"
|
||||
|
||||
gem install --ignore-dependencies --no-user-install --verbose \
|
||||
-i "$gemdir" -n "$TERMUX_PREFIX/bin" asciidoctor -v "$TERMUX_PKG_VERSION"
|
||||
|
||||
sed -i -E "1 s@^(#\!)(.*)@\1${TERMUX_PREFIX}/bin/ruby@" \
|
||||
"$TERMUX_PREFIX/bin/asciidoctor"
|
||||
|
||||
install -Dm600 "$gemdir/gems/asciidoctor-${TERMUX_PKG_VERSION}/man/asciidoctor.1" \
|
||||
"$TERMUX_PREFIX/share/man/main1/asciidoctor.1"
|
||||
}
|
Loading…
Reference in New Issue
Block a user