1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
3 pkgname=ruby-unicode-version
4 _pkgname="${pkgname#ruby-}"
7 pkgdesc='Returns Unicode/Emoji versions of current and previous Rubies'
9 url='https://github.com/janlelis/unicode-version'
13 checkdepends=('ruby-rake' 'ruby-minitest')
14 options=('!emptydirs')
15 _commit='e5016f56648986f96bca4925f010777581980d46'
16 source=("$pkgname::git+$url#commit=$_commit")
22 git describe --tags | sed 's/^v//'
28 gem build "$_pkgname.gemspec"
40 local _gemdir="$(gem env gemdir)"
45 --ignore-dependencies \
47 --install-dir "$pkgdir/$_gemdir" \
48 --bindir "$pkgdir/usr/bin" \
49 "$_pkgname-$pkgver.gem"
52 rm -rf "$pkgdir/$_gemdir/cache"
55 install -vd "$pkgdir/usr/share/licenses/$pkgname"
56 ln -sf "$_gemdir/gems/$_pkgname-$pkgver/MIT-LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname"