summaryrefslogblamecommitdiff
path: root/system/asciidoctor/APKBUILD
blob: 3b26fbab0319e7c9aab1c73db11418753528fda2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
             
        
                                               




                                                                            
              
                                                            

           
                                                  











                                                 
                                              






                                                    
                                                                                                                                                                     
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=asciidoctor
pkgver=2.0.17
pkgrel=0
pkgdesc="An implementation of AsciiDoc in Ruby"
url="https://rubygems.org/gems/$pkgname"
arch="noarch"
options="!check"  # can't test in this packaging format; package differently
license="MIT"
depends="ruby"
makedepends=""
source="https://rubygems.org/downloads/$pkgname-$pkgver.gem"

package() {
	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"
	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="41ebc833c7b8bded5704034c7fcf7d2f26643a24de24eda57db1a0ac94976e775bf0f093f46faaa99c5007c61af325aa5b02e5321159a88daac3397800adbd03  asciidoctor-2.0.17.gem"