[arch-commits] Commit in ruby-fast_gettext/repos (2 files)
Tim Meusel
bastelfreak at archlinux.org
Sat Feb 6 15:41:39 UTC 2021
Date: Saturday, February 6, 2021 @ 15:41:39
Author: bastelfreak
Revision: 846833
archrelease: copy trunk to community-testing-any
Added:
ruby-fast_gettext/repos/community-testing-any/
ruby-fast_gettext/repos/community-testing-any/PKGBUILD
(from rev 846832, ruby-fast_gettext/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: ruby-fast_gettext/repos/community-testing-any/PKGBUILD (from rev 846832, ruby-fast_gettext/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-02-06 15:41:39 UTC (rev 846833)
@@ -0,0 +1,54 @@
+# Maintainer: Tim Meusel <tim at bastelfreak dot de>
+# Contributor: Mario Finelli <mario at finel dot li>
+
+_gemname=fast_gettext
+pkgname=ruby-${_gemname}
+pkgver=2.0.3
+pkgrel=2
+pkgdesc='A simple, fast, memory-efficient and threadsafe implementation of GetText'
+arch=(any)
+url='https://github.com/grosser/fast_gettext'
+license=(MIT RUBY)
+makedepends=(ruby-rdoc ruby-rake ruby-rspec ruby-bundler)
+depends=(ruby)
+source=("https://github.com/grosser/fast_gettext/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz")
+options=(!emptydirs)
+sha512sums=('b9a51c32a8cec8700cc4dea85862b48196aa87a567c813bfa45ecddcb841afbeeac8b061ef7f95a5f6573d78311bf5504e10adee44547b78ae412080bfb258d1')
+
+# disable cloud metric reporting during tests
+prepare() {
+ cd "${_gemname}-${pkgver}"
+
+ sed -i '/single_cov/d' spec/spec_helper.rb
+ sed -i '/SingleCov.setup/d' spec/spec_helper.rb
+ sed -i '/SingleCov/d' spec/fast_gettext/*.rb
+ sed -i '/SingleCov/d' spec/fast_gettext/translation_repository/*.rb
+}
+
+build() {
+ cd "${_gemname}-${pkgver}"
+ gem build "${_gemname}.gemspec"
+}
+
+check() {
+ cd "${srcdir}/${_gemname}-${pkgver}"
+ # tests currently disabled because active-record isn't available as package
+ # rspec
+}
+
+package() {
+ cd "${_gemname}-${pkgver}"
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+
+ gem install \
+ --ignore-dependencies \
+ --no-user-install \
+ -i "$pkgdir/$_gemdir" \
+ -n "$pkgdir/usr/bin" \
+ $_gemname-$pkgver.gem
+
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+
+ # no license file provided in the source
+ install -Dm 644 Readme.md CHANGELOG -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list