[arch-commits] Commit in ruby27-minitest/repos (2 files)
Tim Meusel
bastelfreak at archlinux.org
Sat May 15 23:52:37 UTC 2021
Date: Saturday, May 15, 2021 @ 23:52:37
Author: bastelfreak
Revision: 934847
archrelease: copy trunk to community-testing-any
Added:
ruby27-minitest/repos/community-testing-any/
ruby27-minitest/repos/community-testing-any/PKGBUILD
(from rev 934846, ruby27-minitest/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: ruby27-minitest/repos/community-testing-any/PKGBUILD (from rev 934846, ruby27-minitest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-05-15 23:52:37 UTC (rev 934847)
@@ -0,0 +1,44 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Simon Kohlmeyer <simon.kohlmeyer at gmail.com>
+
+_gemname=minitest
+pkgname=ruby27-${_gemname}
+_gitcommit=b8fb1014ad1932eddefb5107c0f6504ba45e0cbc
+pkgver=5.14.3
+pkgrel=3
+pkgdesc='Complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking'
+url='https://github.com/seattlerb/minitest'
+arch=('any')
+license=('MIT')
+depends=('ruby2.7')
+makedepends=('git' 'ruby27-rake' 'ruby27-rdoc' 'ruby27-hoe')
+options=('!emptydirs')
+source=("git+https://github.com/seattlerb/minitest#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${_gemname}
+ grep 'VERSION = "' lib/minitest.rb|sed -E 's|.*"(.+)".*|\1|'
+}
+
+build() {
+ cd ${_gemname}
+ ruby27-rake gem
+}
+
+check() {
+ cd ${_gemname}
+ ruby27-rake test
+}
+
+package() {
+ cd ${_gemname}
+ local _gemdir="$(gem-2.7 env gemdir)"
+ gem-2.7 install --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}"
+ install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ rm -r "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list