blob: c52a623a8523d7c8efc0db261cee8256726e4386 (
plain) (
tree)
|
|
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=asciidoctor
pkgver=2.0.16
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="2e164a0d24374e0c5461926c865c8900d3fb3f27606af5aac1a0a5f53102ca758f6421a113a9bb100fe7dba2e1accec04ca6ca16670e4b85e373f729bdaba6cd asciidoctor-2.0.16.gem"
|