summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby-rdiscount
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-23 16:26:10 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-23 16:26:10 (GMT)
commit3ac0fa3f26e12295e17914e7209179033f335bb6 (patch)
treea9277c9901e1d29a3f7ac81ad2160e74384154b1 /abs/extra/ruby-rdiscount
parent90a407166c4ad6bfd21ab42ead2add2676bf73d5 (diff)
downloadlinhes_pkgbuild-3ac0fa3f26e12295e17914e7209179033f335bb6.zip
linhes_pkgbuild-3ac0fa3f26e12295e17914e7209179033f335bb6.tar.gz
linhes_pkgbuild-3ac0fa3f26e12295e17914e7209179033f335bb6.tar.bz2
ruby-rdiscount: dep of ruby-ronn
Diffstat (limited to 'abs/extra/ruby-rdiscount')
-rw-r--r--abs/extra/ruby-rdiscount/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/extra/ruby-rdiscount/PKGBUILD b/abs/extra/ruby-rdiscount/PKGBUILD
new file mode 100644
index 0000000..6c43f01
--- /dev/null
+++ b/abs/extra/ruby-rdiscount/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail dot com>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+_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"
+}