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

Felix Yan felixonmars at archlinux.org
Thu Dec 26 01:37:38 UTC 2019


    Date: Thursday, December 26, 2019 @ 01:37:37
  Author: felixonmars
Revision: 541795

archrelease: copy trunk to community-staging-x86_64

Added:
  ruby-iconv/repos/community-staging-x86_64/
  ruby-iconv/repos/community-staging-x86_64/PKGBUILD
    (from rev 541794, ruby-iconv/trunk/PKGBUILD)

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

Copied: ruby-iconv/repos/community-staging-x86_64/PKGBUILD (from rev 541794, ruby-iconv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-26 01:37:37 UTC (rev 541795)
@@ -0,0 +1,26 @@
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+
+pkgname=ruby-iconv
+pkgver=1.0.5
+pkgrel=3
+pkgdesc='Wrapper library for iconv'
+arch=('x86_64')
+url='https://github.com/nurse/iconv'
+license=('BSD')
+depends=('ruby')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
+noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('ef913e92e05002d37bebed57e8ecbad91b8a9da5da3b0f80bafd32d3ccc171da')
+
+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}/BSDL "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list