blob: cf541f09a119595cdcdb34ea06b769f7bd90c3c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=asciidoctor
pkgname=$_gemname
pkgver=1.5.4
pkgrel=0
pkgdesc="A text processor for converting AsciiDoc markup into HTML 5, DocBook 4.5 and other formats."
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby"
makedepends=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
build() {
return 0
}
package() {
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
gem install --local --install-dir "$pkgdir"/$_gemdir \
--ignore-dependencies --verbose --no-document \
"$srcdir"/$_gemname-$pkgver.gem || return 1
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
}
md5sums="af6d1ca58e9ca0384a8f813e1a306b23 asciidoctor-1.5.4.gem"
sha256sums="0ca7c78528165b194b678a71f5bc600aafbee3dfa5bcd40c042e382d5d883477 asciidoctor-1.5.4.gem"
sha512sums="c5de5eb62268f985255ea21ca43c1fd7918f339912459c60259ef14992958d451c98fd707bf830ac4b3253eeac44e06cabbab70d782c39c3976a058024360495 asciidoctor-1.5.4.gem"
|