[arch-commits] Commit in ruby-rdiscount/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:31:54 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:31:53
  Author: felixonmars
Revision: 541624

archrelease: copy trunk to community-staging-x86_64

Added:
  ruby-rdiscount/repos/community-staging-x86_64/
  ruby-rdiscount/repos/community-staging-x86_64/PKGBUILD
    (from rev 541623, ruby-rdiscount/trunk/PKGBUILD)

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Copied: ruby-rdiscount/repos/community-staging-x86_64/PKGBUILD (from rev 541623, ruby-rdiscount/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-26 00:31:53 UTC (rev 541624)
@@ -0,0 +1,27 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at 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=5
+pkgdesc="Fast Implementation of Gruber's Markdown in C"
+arch=(x86_64)
+url='https://dafoster.net/projects/rdiscount/'
+license=(BSD)
+depends=(ruby)
+makedepends=('ruby-rdoc')
+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"
+}


More information about the arch-commits mailing list