[arch-commits] Commit in ruby-mail/trunk (PKGBUILD)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sat Jan 25 18:41:48 UTC 2014
Date: Saturday, January 25, 2014 @ 19:41:47
Author: alucryd
Revision: 104762
FS#38631: ruby-mail 2.5.4-4
Modified:
ruby-mail/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-25 18:39:23 UTC (rev 104761)
+++ PKGBUILD 2014-01-25 18:41:47 UTC (rev 104762)
@@ -5,34 +5,25 @@
pkgname=ruby-mail
pkgver=2.5.4
-pkgrel=3
+pkgrel=4
pkgdesc='A really Ruby Mail handler'
arch=('any')
url='http://github.com/mikel/mail'
license=('MIT')
depends=('ruby-mime-types' 'ruby-treetop')
+options=('!emptydirs')
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 _gemdir="$(ruby -e'puts Gem.default_dir')"
- local _rubyver="$(ruby --version | sed 's/.* \(.*\..*\..*\)p.*/\1/')"
+ 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/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
+ ln -s "${pkgdir}"/${_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