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

Levente Polyak anthraxx at archlinux.org
Mon Jul 16 23:38:39 UTC 2018


    Date: Monday, July 16, 2018 @ 23:38:39
  Author: anthraxx
Revision: 360327

archrelease: copy trunk to community-any

Added:
  ruby-trollop/repos/community-any/PKGBUILD
    (from rev 360326, ruby-trollop/trunk/PKGBUILD)
Deleted:
  ruby-trollop/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-16 23:38:33 UTC (rev 360326)
+++ PKGBUILD	2018-07-16 23:38:39 UTC (rev 360327)
@@ -1,25 +0,0 @@
-# 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=5
-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:

Copied: ruby-trollop/repos/community-any/PKGBUILD (from rev 360326, ruby-trollop/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-16 23:38:39 UTC (rev 360327)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Vojtěch Aschenbrenner <v at asch.cz>
+
+_gemname=trollop
+pkgname=ruby-${_gemname}
+pkgver=2.1.3
+pkgrel=1
+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')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/ManageIQ/trollop/archive/v${pkgver}.tar.gz)
+sha512sums=('d23ab0ca04565b831db2f954846db1fc5aa3f7fa7ebc1c313a39317dfd08ae7fba6a7a584fb17f6dd821ef4bc7ae7db414e53e322d320ac494fc5e8bbea82fb8')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+  sed 's|git ls-files -z|find -type f -print0\|sed "s,\\\\./,,g"|' -i ${_gemname}.gemspec
+}
+
+build() {
+  cd ${_gemname}-${pkgver}
+  gem build ${_gemname}.gemspec
+}
+
+package() {
+  cd ${_gemname}-${pkgver}
+  local _gemdir="$(gem env gemdir)"
+  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" -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.md" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list