# $Id$ # Maintainer: Anatol Pomozov # Contributor: Massimiliano Torromeo # Contributor: Alexsandr Pavlov _gemname=rdiscount pkgname=ruby-$_gemname pkgver=2.2.0.1 pkgrel=3 pkgdesc="Fast Implementation of Gruber's Markdown in C" arch=(x86_64) url='http://dafoster.net/projects/rdiscount/' license=(BSD) depends=(ruby) options=(!emptydirs) source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) noextract=($_gemname-$pkgver.gem) sha1sums=('1fb5666607a1c0925d909e05d83a873d751bf3e3') package() { local _gemdir="$(ruby -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" rm -rf "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext" }