# Contributor: Francesco Colista # Maintainer: Francesco Colista _gemname=unf_ext pkgname=ruby-$_gemname pkgver=0.0.7.1 pkgrel=1 pkgdesc="Unicode Normalization Form support library for CRuby" arch="all" url="https://github.com/knu/ruby-unf_ext" license="MIT" depends="ruby" makedepends="ruby-dev" source="https://rubygems.org/downloads/$_gemname-$pkgver.gem" _builddir="$srcdir"/$_gemname-$pkgver build() { mkdir -p "$_builddir" || return 1 export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ --ignore-dependencies \ --verbose \ --no-rdoc \ --no-ri \ || return 1 rm -rf "$pkgdir"/$_gemdir/cache \ "$pkgdir"/$_geminstdir/ext \ "$pkgdir"/$_geminstdir/.require_paths } package() { mkdir -p "$pkgdir" || return 1 cp -ra "$_builddir"/* "$pkgdir"/ || return 1 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" } md5sums="39bfbb9e124410f57a97d1837f02d42a unf_ext-0.0.7.1.gem" sha256sums="ab58d1a808d38872817bea89fc3f055bfc250af48d9653425e35c7c18caec253 unf_ext-0.0.7.1.gem" sha512sums="06239dc5870ad0f345266b12ad6ed9508ab731dfd37b450d0e1eae1ef8e8301f8ad1ef7fffbbcf69b56b0af5aa257ea279dda3a252bdf397d11949e9885db3d4 unf_ext-0.0.7.1.gem"