[arch-commits] Commit in ruby-mail (3 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Fri Sep 27 08:26:41 UTC 2013


    Date: Friday, September 27, 2013 @ 10:26:41
  Author: alucryd
Revision: 97676

archrelease: copy trunk to community-any

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

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

Copied: ruby-mail/repos/community-any/PKGBUILD (from rev 97675, ruby-mail/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2013-09-27 08:26:41 UTC (rev 97676)
@@ -0,0 +1,38 @@
+# $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.5.4
+pkgrel=2
+pkgdesc="A really Ruby Mail handler"
+arch=('any')
+url="http://github.com/mikel/mail"
+license=('MIT')
+depends=('ruby-mime-types' 'ruby-treetop')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('446585c38b062121252688dcc9cc70af1f470822e30db021bb97d185969e257c')
+
+prepare() {
+  gem install --no-{document,user-install} --ignore-dependencies -i . ${pkgname#*-}-${pkgver}.gem
+}
+
+package() {
+  cd gems/${pkgname#*-}-${pkgver}
+
+  local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')"
+
+  install -dm 755 "${pkgdir}"/usr/lib/ruby/{gems/${_rubyver},vendor_ruby}
+  mv lib "${pkgdir}"/usr/lib/ruby/vendor_ruby/${_rubyver}
+
+# Gem compatibility
+  mv ../../specifications "${pkgdir}"/usr/lib/ruby/gems/${_rubyver}/
+
+# License
+  install -dm 755 "${pkgdir}"/usr/share/licenses/${pkgname}
+  install -m 644 {,"${pkgdir}"/usr/share/licenses/${pkgname}/}MIT-LICENSE
+}
+
+# vim: ts=2 sw=2 et:




More information about the arch-commits mailing list