[arch-commits] Commit in ruby-trollop/repos (community-any community-any/PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 18:50:53 UTC 2015
Date: Saturday, September 12, 2015 @ 20:50:53
Author: anthraxx
Revision: 139993
archrelease: copy trunk to community-any
Added:
ruby-trollop/repos/community-any/
ruby-trollop/repos/community-any/PKGBUILD
(from rev 139992, ruby-trollop/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: ruby-trollop/repos/community-any/PKGBUILD (from rev 139992, ruby-trollop/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-09-12 18:50:53 UTC (rev 139993)
@@ -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