Package Details: ruby-fast_gettext 2.0.3-1

Git Clone URL: https://aur.archlinux.org/ruby-fast_gettext.git (read-only, click to copy)
Package Base: ruby-fast_gettext
Description: A simple, fast, memory-efficient and threadsafe implementation of GetText
Upstream URL: https://github.com/grosser/fast_gettext
Licenses: ruby, MIT
Submitter: supermario
Maintainer: supermario
Last Packager: supermario
Votes: 1
Popularity: 0.50
First Submitted: 2016-09-07 11:41
Last Updated: 2020-06-08 20:24

Latest Comments

bastelfreak commented on 2020-06-07 22:46

Hi, I updated it for 2.0.3:

# Maintainer: Mario Finelli <mario at finel dot li>
# Contributor: Tim Meusel <tim@bastelfreak.de>

_gemname='fast_gettext'
pkgname="ruby-${_gemname}"
pkgver=2.0.3
pkgrel=1
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 --in-place '/single_cov/d' spec/spec_helper.rb
  sed --in-place '/SingleCov.setup/d' spec/spec_helper.rb
  sed --in-place '/SingleCov/d' spec/fast_gettext/*.rb
  sed --in-place '/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="$(gem env gemdir)"
  gem 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 CHANGELOG -t "${pkgdir}/usr/share/doc/${pkgname}"
}

# vim: ts=2 sw=2 et:

bastelfreak commented on 2020-01-05 13:40

Hi, I updated the PKGBUILD to build properly from source:

# Maintainer: Mario Finelli <mario at finel dot li>
# Contributor: Tim Meusel <tim@bastelfreak.de>

_gemname='fast_gettext'
pkgname="ruby-${_gemname}"
pkgver=2.0.1
pkgrel=1
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=('edf98e22a39266c55e7d77547fb1b8cb3a07dcb7bd742e2eb93b636072902f065dede0d980bd3a67373f5afeacc39689cbcee33dd62ad10e1e94f6d84bcbc70c')

build() {
  cd "${_gemname}-${pkgver}"
  gem build "${_gemname}.gemspec"
}

package() {
  cd "${_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"

  rm -rf "${pkgdir}/${_gemdir}/cache"
}

# vim: ts=2 sw=2 et: