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

Felix Yan felixonmars at archlinux.org
Fri Mar 19 18:45:05 UTC 2021


    Date: Friday, March 19, 2021 @ 18:45:04
  Author: felixonmars
Revision: 894891

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-mail/repos/community-staging-any/PKGBUILD (from rev 894890, ruby-mail/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-03-19 18:45:04 UTC (rev 894891)
@@ -0,0 +1,28 @@
+# 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.1
+pkgrel=4
+pkgdesc='A really Ruby Mail handler'
+arch=('any')
+url='https://github.com/mikel/mail'
+license=('MIT')
+depends=('ruby-mini_mime')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('ec2a3d489f7510b90d8eaa3f6abaad7038cf1d663cdf8ee66d0214a0bdf99c03')
+
+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