summaryrefslogtreecommitdiff
path: root/pcr/ruby-maruku/PKGBUILD
blob: 786b03e983647e7d790f03c1307a4c45e471c65b (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
# Maintainter: Aurelien Desbrieres <aurelien@cwb.io>
# Contributer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (AUR): Adam Lloyd <lloyda2@rpi.edu>

_gemname=maruku
pkgname=ruby-$_gemname
pkgver=0.6.1
pkgdesc="A Markdown-superset interpreter"
url="http://maruku.rubyforge.org/"

license=('GPL') # GPL2+

pkgrel=1
arch=(any)
depends=(ruby ruby-syntax)
makedepends=(rubygems)
source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
  gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \
    "$_gemname-$pkgver.gem"
}

md5sums=('b919c2b706ca83502a8bec0be5c16c6d')