[arch-commits] Commit in ruby-minitest/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Feb 4 09:43:17 UTC 2019


    Date: Monday, February 4, 2019 @ 09:43:16
  Author: anthraxx
Revision: 429561

archrelease: copy trunk to community-any

Added:
  ruby-minitest/repos/community-any/
  ruby-minitest/repos/community-any/PKGBUILD
    (from rev 429560, ruby-minitest/trunk/PKGBUILD)

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

Copied: ruby-minitest/repos/community-any/PKGBUILD (from rev 429560, ruby-minitest/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-02-04 09:43:16 UTC (rev 429561)
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Simon Kohlmeyer <simon.kohlmeyer at gmail.com>
+
+_gemname=minitest
+pkgname=ruby-${_gemname}
+_gitcommit=2362e328883ff133140fd8bea5e9ec9a714a7999
+pkgver=5.11.3
+pkgrel=2
+pkgdesc='Complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking'
+url='https://github.com/seattlerb/minitest'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('git' 'rubygems' 'ruby-rake' 'ruby-rdoc' 'ruby-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}
+  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 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