1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
7 pkgdesc='Provides a wide array of features for dealing with colors'
9 url='https://github.com/red-data-tools/red-colors'
12 options=('!emptydirs')
13 source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
14 noextract=($_gemname-$pkgver.gem)
15 sha512sums=('baa05634213a46da968a42e478db097c5bc47187e61807a3b3c30b8109a0fae63d587e5a3227b5bca75b921304b9d5e24a5ba945361dd5eba1c25235889c2cf1')
18 local _gemdir="$(ruby -e'puts Gem.default_dir')"
19 gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
20 rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
21 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"