blob: 27e8805fe97e11ca02e2de4f16fc82068792e048 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=redcarpet
pkgname=ruby-$_gemname
# redmine 3.0 needs ~> 3.1.2
pkgver=3.1.2
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="b7423381fced7c6a9153f6ab629539a9 redcarpet-3.1.2.gem"
sha256sums="ff5397c2b0d1344f065d07e58ed157f5bc25b49d44e723348620693ba928d71c redcarpet-3.1.2.gem"
sha512sums="ab431d36326a0c4e482885dd00600a50617a57a7150437544ee845ee5225c35b546ed9484032b284d2523b2e4f6a56df448b48026f1a18b09ac9071afa816b31 redcarpet-3.1.2.gem"
|