blob: 93c77b79a90f395e3dd117a22726f49c611324d5 (
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
40
41
42
43
44
45
46
47
|
# Contributor: Markus M. May <triplem@javafreedom.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=redcarpet
pkgname=ruby-$_gemname
# redmine 3.0.5 needs ~> 3.3.2
pkgver=3.3.4
pkgrel=0
pkgdesc="A fast, safe and extensible Markdown to (X)HTML parser"
url="http://github.com/vmg/redcarpet"
arch="all"
license="MIT"
depends="ruby"
depends_dev=
makedepends="$depends_dev ruby-dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_realname-$pkgver
build() {
return 0
}
package() {
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
mkdir -p "$pkgdir" || return 1
gem install --local --install-dir "$pkgdir"/$_gemdir \
--ignore-dependencies --verbose --no-rdoc --no-ri \
"$srcdir"/$_gemname-$pkgver.gem || return 1
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
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="ac276e95369ff2647a1e3caf6ffda8c6 redcarpet-3.3.4.gem"
sha256sums="6fbf59f8fa23f84497cfb9bd1601ec35fa32f400d9034bf861c15dbbc02d6813 redcarpet-3.3.4.gem"
sha512sums="8ef78c351d319b193167a5dc7b45fa39c81b02fe5c0d0102cbbeea2af85ed0b3e7a00b16a58596996739c2538ba3d95bc3e85d6614d85fb845c34891b4c407c2 redcarpet-3.3.4.gem"
|