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

Evangelos Foutras foutrelis at archlinux.org
Fri Mar 19 17:30:51 UTC 2021


    Date: Friday, March 19, 2021 @ 17:30:51
  Author: foutrelis
Revision: 894769

archrelease: copy trunk to community-staging-any

Added:
  ruby-hoe/repos/community-staging-any/
  ruby-hoe/repos/community-staging-any/PKGBUILD
    (from rev 894768, ruby-hoe/trunk/PKGBUILD)

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

Copied: ruby-hoe/repos/community-staging-any/PKGBUILD (from rev 894768, ruby-hoe/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-03-19 17:30:51 UTC (rev 894769)
@@ -0,0 +1,47 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Bernhard Landauer <oberon at manjaro.org>
+# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
+
+_gemname=hoe
+pkgname=ruby-${_gemname}
+_gitcommit=c50be1641440a5fd821c5438219a9a88e189461c
+pkgver=3.22.3
+pkgrel=2
+pkgdesc='Hoe is a rake/rubygems helper for project Rakefiles'
+url='https://www.zenspider.com/projects/hoe.html'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('git' 'ruby-rdoc' 'ruby-rake')
+checkdepends=('ruby-minitest')
+options=('!emptydirs')
+source=("git+https://github.com/seattlerb/hoe#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ${_gemname}
+  grep 'VERSION = "' lib/hoe.rb|sed -E 's|.*"(.+)"|\1|'
+}
+
+build() {
+  cd ${_gemname}
+  rake gem
+}
+
+check() {
+  cd ${_gemname}
+  rake test
+}
+
+package() {
+  cd ${_gemname}
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
+    -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem
+  install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \
+    extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list