[arch-commits] Commit in ruby-hoe/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Tue Dec 10 23:54:18 UTC 2019


    Date: Tuesday, December 10, 2019 @ 23:54:18
  Author: anthraxx
Revision: 536594

upgpkg: ruby-hoe 3.20.0-1

Modified:
  ruby-hoe/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-10 22:57:51 UTC (rev 536593)
+++ PKGBUILD	2019-12-10 23:54:18 UTC (rev 536594)
@@ -4,9 +4,9 @@
 
 _gemname=hoe
 pkgname=ruby-${_gemname}
-_gitcommit=a4cb51d8eaec7d7083cef7b3a83a024cb5a7b9c9
-pkgver=3.17.1
-pkgrel=2
+_gitcommit=c5bb62f78193e8dcb734d412c38791ce6f74773c
+pkgver=3.20.0
+pkgrel=1
 pkgdesc='Hoe is a rake/rubygems helper for project Rakefiles'
 url='https://www.zenspider.com/projects/hoe.html'
 arch=('any')
@@ -13,6 +13,7 @@
 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')
@@ -27,6 +28,11 @@
   rake gem
 }
 
+check() {
+  cd ${_gemname}
+  rake test
+}
+
 package() {
   cd ${_gemname}
   local _gemdir="$(gem env gemdir)"
@@ -34,7 +40,8 @@
     -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 "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+  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