Date: Monday, January 20, 2020 @ 19:33:44
  Author: shibumi
Revision: 553248

add for puppet

Added:
  ruby-unf/
  ruby-unf/repos/
  ruby-unf/trunk/
  ruby-unf/trunk/PKGBUILD

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

Added: ruby-unf/trunk/PKGBUILD
===================================================================
--- ruby-unf/trunk/PKGBUILD                             (rev 0)
+++ ruby-unf/trunk/PKGBUILD     2020-01-20 19:33:44 UTC (rev 553248)
@@ -0,0 +1,47 @@
+# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org>
+# Contributor: Mario Finelli <mario at finel do li>
+# Contributor: Tim Meusel <t...@bastelfreak.de>
+
+_gemname='unf'
+pkgname="ruby-${_gemname}"
+pkgver=0.2.0.beta2
+pkgrel=2
+pkgdesc='This is a wrapper library to bring Unicode Normalization Form support 
to Ruby/JRuby.'
+arch=('any')
+url='https://github.com/knu/ruby-unf'
+license=('BSD')
+makedepends=('ruby-rdoc' 'ruby-bundler')
+checkdepends=('ruby-rake')
+depends=('ruby')
+options=(!emptydirs)
+source=("${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+sha512sums=('5fddb66913db6c143e68fea623be7c01636dff0d7ba74fd08b59f4e53672b3345fe518053ded1efb9fc9f44fef4097b607dadda796309fc91baa59d096493b82')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # we build based on a tar ball, so `git` won't work here
+  sed --in-place 's|git ls-files|find|' "${_gemname}.gemspec"
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  rake test
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${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}/"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to