summaryrefslogblamecommitdiff
path: root/system/asciidoctor/APKBUILD
blob: ef87e9314238f9270e3866bb6d32618b9511b5a4 (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.18
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="522c0a587a95c7a5c5618f88832c11a547448d12b883ee9a7d9f6e8509b44e2c5c027cf23335790cbc5cd74dc297010141ac535c0ba45622e49eac8d70fe6127  asciidoctor-2.0.18.gem"