# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-unicode-display_width _gemname=unicode-display_width # NOTE: Before bumping, check version required by jekyll. pkgver=2.4.2 pkgrel=0 pkgdesc="Monospace Unicode character width in Ruby" url="https://github.com/janlelis/unicode-display_width" arch="noarch" license="MIT" depends="ruby" checkdepends="ruby-rspec" source="https://github.com/janlelis/unicode-display_width/archive/v$pkgver/$_gemname-$pkgver.tar.gz tests-skip-emoji.patch gemspec.patch " builddir="$srcdir/$_gemname-$pkgver" build() { gem build $_gemname.gemspec } check() { rspec . } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Remove unnecessary files and rubbish... cd "$gemdir" rm -r cache build_info doc extensions plugins } sha512sums=" c0815c19821855fed2d3205a6cae2059e0338fb27148f55281c910b54d5b0be2d34ba4bf990ba1c328c454f7ec8dbc0c69427550f2d62d1ac4ce5174b53b8ff3 unicode-display_width-2.4.2.tar.gz 9c77096c0f942119a863239a5abb8e0bde20f865b61706038d753ad20dbfe408d1d0d08256ab9c03561e6966e442a85b1a8ed9b049ab1bce924e3a5545624ac2 tests-skip-emoji.patch 95a5769602c1f06e76c73896367db972fea2cb5bbeb8ddcf70e12097563f6651f52eb1ab2482cea69c16fab03bfc71bf5dc33481dfd8974d5f725a19b8519c45 gemspec.patch "