[arch-commits] Commit in ruby-mime-types/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Mar 19 22:07:17 UTC 2021
Date: Friday, March 19, 2021 @ 22:07:17
Author: foutrelis
Revision: 895225
archrelease: copy trunk to community-staging-any
Added:
ruby-mime-types/repos/community-staging-any/
ruby-mime-types/repos/community-staging-any/PKGBUILD
(from rev 895224, ruby-mime-types/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: ruby-mime-types/repos/community-staging-any/PKGBUILD (from rev 895224, ruby-mime-types/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-03-19 22:07:17 UTC (rev 895225)
@@ -0,0 +1,27 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Alexsandr Pavlov <kidoz at mail.ru>
+
+pkgname=ruby-mime-types
+pkgver=3.3.1
+pkgrel=2
+pkgdesc='MIME Content-Type database'
+arch=('any')
+url='http://mime-types.rubyforge.org'
+license=('GPL2' 'MIT' 'PerlArtistic')
+depends=('ruby' 'ruby-mime-types-data')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/mime-types-${pkgver}.gem")
+noextract=("mime-types-${pkgver}.gem")
+sha256sums=('708f737e28ceef48b9a1bc041aa9eec46fa36eb36acb95e6b64a9889131541fe')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+ gem install --ignore-dependencies --no-user-install -N -i "${pkgdir}"/${_gemdir} mime-types-${pkgver}.gem
+ find "${pkgdir}" -type f -name *.gem -delete
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses/ruby-mime-types
+ ln -s ${_gemdir}/gems/mime-types-${pkgver}/Licence.rdoc "${pkgdir}"/usr/share/licenses/ruby-mime-types/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list