[arch-commits] Commit in ruby27-test-unit/repos (2 files)

Tim Meusel bastelfreak at archlinux.org
Sun May 16 15:04:59 UTC 2021


    Date: Sunday, May 16, 2021 @ 15:04:59
  Author: bastelfreak
Revision: 935843

archrelease: copy trunk to community-testing-any

Added:
  ruby27-test-unit/repos/community-testing-any/
  ruby27-test-unit/repos/community-testing-any/PKGBUILD
    (from rev 935842, ruby27-test-unit/trunk/PKGBUILD)

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

Copied: ruby27-test-unit/repos/community-testing-any/PKGBUILD (from rev 935842, ruby27-test-unit/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-05-16 15:04:59 UTC (rev 935843)
@@ -0,0 +1,48 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Alfredo Palhares <masterkorp at masterkorp.net>
+# Contributor: Jochen Schalanda <jochen+aur at schalanda.name>
+
+_gemname=test-unit
+pkgname="ruby27-${_gemname}"
+pkgver=3.4.1
+pkgrel=1
+pkgdesc='An xUnit family unit testing framework for Ruby'
+arch=('any')
+url="https://github.com/${_gemname}/${_gemname}"
+license=('GPL')
+depends=('ruby2.7' 'ruby27-power_assert')
+makedepends=('ruby27-rdoc')
+options=('!emptydirs')
+source=("${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('505262c6100fc43496c6b831cc22a98dd73351787c73903e6d2e776ad2987b5d5010c0d7e3bc568486825578aa8a2c69cf9d99cb3da655bf79424ab2f92baa94')
+
+# fix wrong license identifier to match the official ones from https://spdx.org/licenses/
+prepare() {
+  cd "${_gemname}-${pkgver}"
+  sed --in-place 's/spec.licenses.*/spec.licenses = ["BSD-2-Clause", "PSF-2.0", "Ruby"]/' "${_gemname}.gemspec"
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+ gem-2.7 build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${_gemname}-${pkgver}"
+  ruby-2.7 test/run-test.rb
+}
+
+package() {
+  cd "${_gemname}-${pkgver}"
+  local _gemdir="$(gem-2.7 env gemdir)"
+  gem-2.7 install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+
+  install -Dm 644 README.md doc/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 BSDL COPYING PSFL -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list