blob: 9a408f967e9326c89385c22a068d0d67af3d0f12 (
plain)
1 # Description: An implementation of AsciiDoc in Ruby
2 # Maintainer: Danny Rawlins, crux at romster dot me
3 # URL: https://asciidoctor.org/
4 # Depends on: ruby
5
6 name=asciidoctor
7 version=2.0.18
8 release=1
9 source=(https://github.com/$name/$name/archive/v$version/$name-v$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 # Install the main asciidoctor scripts
15 install -D bin/asciidoctor $PKG/usr/bin/asciidoctor
16
17 # Install libraries
18 install -D lib/asciidoctor.rb $PKG/usr/lib/ruby/vendor_ruby/asciidoctor.rb
19 cp -r lib/asciidoctor $PKG/usr/lib/ruby/vendor_ruby/asciidoctor
20
21 # Install shared stylesheets
22 install -D \
23 data/stylesheets/asciidoctor-default.css \
24 $PKG/usr/lib/ruby/data/stylesheets/asciidoctor-default.css
25 install -D \
26 data/stylesheets/coderay-asciidoctor.css \
27 $PKG/usr/lib/ruby/data/stylesheets/coderay-asciidoctor.css
28
29 # Compress and install the man page
30 gzip man/asciidoctor.1
31 install -D man/asciidoctor.1.gz $PKG/usr/share/man/man1/asciidoctor.1.gz
32 }
|