[arch-commits] Commit in ruby-mime-types/repos/community-testing-any (2 files)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Sat Jan 25 18:32:16 UTC 2014
Date: Saturday, January 25, 2014 @ 19:32:16
Author: alucryd
Revision: 104755
archrelease: copy trunk to community-testing-any
Added:
ruby-mime-types/repos/community-testing-any/PKGBUILD
(from rev 104754, ruby-mime-types/trunk/PKGBUILD)
Deleted:
ruby-mime-types/repos/community-testing-any/PKGBUILD
----------+
PKGBUILD | 65 ++++++++++++++++++++++++++-----------------------------------
1 file changed, 28 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2014-01-25 18:32:05 UTC (rev 104754)
+++ PKGBUILD 2014-01-25 18:32:16 UTC (rev 104755)
@@ -1,37 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
-# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
-
-pkgname=ruby-mime-types
-pkgver=2.0
-pkgrel=2
-pkgdesc='MIME Content-Type database'
-arch=('any')
-url='http://mime-types.rubyforge.org'
-license=('GPL2' 'MIT' 'PerlArtistic')
-depends=('ruby')
-source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
-noextract=("${pkgname#*-}-${pkgver}.gem")
-sha256sums=('d3e53ba4162d4ee93ce75e644c7fca5503fad1c512277b9ca80ad43aa8103ae0')
-
-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}/}Licence.rdoc
-}
-
-# vim: ts=2 sw=2 et:
Copied: ruby-mime-types/repos/community-testing-any/PKGBUILD (from rev 104754, ruby-mime-types/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2014-01-25 18:32:16 UTC (rev 104755)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
+
+pkgname=ruby-mime-types
+pkgver=2.0
+pkgrel=3
+pkgdesc='MIME Content-Type database'
+arch=('any')
+url='http://mime-types.rubyforge.org'
+license=('GPL2' 'MIT' 'PerlArtistic')
+depends=('ruby')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('d3e53ba4162d4ee93ce75e644c7fca5503fad1c512277b9ca80ad43aa8103ae0')
+
+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 "${pkgdir}"/${_gemdir}/gems/${pkgname#*-}-${pkgver}/docs/COPYING.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list