[arch-commits] Commit in ruby-mini_mime/repos (community-any community-any/PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Mon Nov 6 17:52:13 UTC 2017


    Date: Monday, November 6, 2017 @ 17:52:10
  Author: anatolik
Revision: 265591

archrelease: copy trunk to community-any

Added:
  ruby-mini_mime/repos/community-any/
  ruby-mini_mime/repos/community-any/PKGBUILD
    (from rev 265590, ruby-mini_mime/trunk/PKGBUILD)

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

Copied: ruby-mini_mime/repos/community-any/PKGBUILD (from rev 265590, ruby-mini_mime/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-11-06 17:52:10 UTC (rev 265591)
@@ -0,0 +1,26 @@
+# $Id$
+
+pkgname=ruby-mini_mime
+pkgver=0.1.4
+pkgrel=1
+pkgdesc='A lightweight mime type lookup toy'
+arch=('any')
+url=' https://github.com/discourse/mini_mime'
+depends=('ruby')
+license=('MIT')
+options=('!emptydirs')
+source=("http://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('af99edd6fc6e18be29206917c17768b3fdbab004da56c31287126615fa17ee4f')
+
+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}/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list