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

Evangelos Foutras foutrelis at archlinux.org
Wed Jan 3 08:06:45 UTC 2018


    Date: Wednesday, January 3, 2018 @ 08:06:44
  Author: foutrelis
Revision: 278033

archrelease: copy trunk to community-staging-any

Added:
  ruby-mail/repos/community-staging-any/
  ruby-mail/repos/community-staging-any/PKGBUILD
    (from rev 278032, ruby-mail/trunk/PKGBUILD)

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

Copied: ruby-mail/repos/community-staging-any/PKGBUILD (from rev 278032, ruby-mail/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-01-03 08:06:44 UTC (rev 278033)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Emiliano Vavassori <syntaxerrormmm at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
+
+pkgname=ruby-mail
+pkgver=2.7.0
+pkgrel=3
+pkgdesc='A really Ruby Mail handler'
+arch=('any')
+url='http://github.com/mikel/mail'
+license=('MIT')
+depends=('ruby-mini_mime')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('1f2ae391ca04b0a3c78905ce5b2ebc951332ee211781dd7e7b3569fd958bbe81')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+  gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} ${pkgname#*-}-${pkgver}.gem
+  find "${pkgdir}" -type f -name *.gem -delete
+
+  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s ${_gemdir}/gems/${pkgname#*-}-${pkgver}/MIT-LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list