[arch-commits] Commit in ruby-colored2/repos (2 files)

Tim Meusel bastelfreak at archlinux.org
Mon Feb 22 20:55:47 UTC 2021


    Date: Monday, February 22, 2021 @ 20:55:46
  Author: bastelfreak
Revision: 868941

archrelease: copy trunk to community-testing-any

Added:
  ruby-colored2/repos/community-testing-any/
  ruby-colored2/repos/community-testing-any/PKGBUILD
    (from rev 868940, ruby-colored2/trunk/PKGBUILD)

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

Copied: ruby-colored2/repos/community-testing-any/PKGBUILD (from rev 868940, ruby-colored2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-02-22 20:55:46 UTC (rev 868941)
@@ -0,0 +1,51 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: farawayer <farwayer at gmail.com>
+
+_gemname='colored2'
+pkgname="ruby-${_gemname}"
+pkgver=3.1.2
+pkgrel=4
+pkgdesc='Simple gem that adds various colour methods to String class'
+arch=('any')
+url='https://github.com/kigster/colored2'
+license=('MIT')
+makedepends=('ruby-rdoc')
+checkdepends=('ruby-rspec')
+depends=('ruby')
+source=("${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+options=("!emptydirs")
+sha512sums=('fa318c71e253ea5d55e31bf477f4296973fc30f5963a473465becb411c51b2ded5eaa4017d54c1a793332ef334b72c77498821c9a172dd6e2bd07d3c34326489')
+
+prepare() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+
+  # update the gemspec to allow newer dependency versions
+  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
+
+  # disable coverage reporting to the cloud
+  sed --in-place '/codeclimate-test-reporter/d' "${_gemname}.gemspec"
+  sed --in-place '/simplecov/Id' spec/spec_helper.rb
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  rspec
+}
+
+package() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list