[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Sat Sep 12 18:50:29 UTC 2015


    Date: Saturday, September 12, 2015 @ 20:50:29
  Author: anthraxx
Revision: 139992

addpkg: ruby-trollop 2.1.2-2

Added:
  ruby-trollop/
  ruby-trollop/repos/
  ruby-trollop/trunk/
  ruby-trollop/trunk/PKGBUILD

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

Added: ruby-trollop/trunk/PKGBUILD
===================================================================
--- ruby-trollop/trunk/PKGBUILD	                        (rev 0)
+++ ruby-trollop/trunk/PKGBUILD	2015-09-12 18:50:29 UTC (rev 139992)
@@ -0,0 +1,25 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Vojtěch Aschenbrenner <v at asch.cz>
+
+_gemname=trollop
+pkgname=ruby-${_gemname}
+pkgver=2.1.2
+pkgrel=2
+pkgdesc='Commandline option parser for Ruby that just gets out of your way'
+url='http://manageiq.github.io/trollop/'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${pkgname}-${pkgver}.gem)
+sha512sums=('afebe220119476fe3b992f430c79c9de06a6b5398f3ccf957bc0e3b3a1bcebd47a350a94882b3c46aa4db93c70002f3d4adabfe95d0338f14149545c7a9e8dc3')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.md" "${pkgdir}/usr/share/doc/${pkgname}/README"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list