[arch-commits] Commit in (4 files)

Tim Meusel bastelfreak at archlinux.org
Thu Feb 25 21:46:42 UTC 2021


    Date: Thursday, February 25, 2021 @ 21:46:42
  Author: bastelfreak
Revision: 874191

add ruby-minitest-proveit

Added:
  ruby-minitest-proveit/
  ruby-minitest-proveit/repos/
  ruby-minitest-proveit/trunk/
  ruby-minitest-proveit/trunk/PKGBUILD

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

Added: ruby-minitest-proveit/trunk/PKGBUILD
===================================================================
--- ruby-minitest-proveit/trunk/PKGBUILD	                        (rev 0)
+++ ruby-minitest-proveit/trunk/PKGBUILD	2021-02-25 21:46:42 UTC (rev 874191)
@@ -0,0 +1,41 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='minitest-proveit'
+pkgname="ruby-${_gemname}"
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='forces all tests to prove success (via at least one assertion) rather than rely on the absence of failure.'
+arch=('any')
+url='https://github.com/seattlerb/minitest-proveit'
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-hoe' 'ruby-bundler' 'git' 'ruby-rake')
+checkdepends=('ruby-minitest')
+options=('!emptydirs')
+source=("git+${url}#commit=1d86852bd820e1dc4f2d204231f1ebbc1b146075")
+sha512sums=('SKIP')
+
+prepare() {
+  cd "${srcdir}/${_gemname}"
+
+}
+
+build() {
+  cd "${srcdir}/${_gemname}"
+  rake package
+}
+
+check() {
+  cd "${srcdir}/${_gemname}"
+  rake test
+}
+
+package() {
+cd "${srcdir}/${_gemname}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "pkg/${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 README.rdoc History.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+ }


More information about the arch-commits mailing list