archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-red-colors / repos / community-any / PKGBUILD
blob0a56966a6bbd01eb62d6cc9e1ba92061eac6630f
1 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 _gemname=red-colors
4 pkgname=ruby-$_gemname
5 pkgver=0.3.0
6 pkgrel=1
7 pkgdesc='Provides a wide array of features for dealing with colors'
8 arch=(any)
9 url='https://github.com/red-data-tools/red-colors'
10 license=('MIT')
11 depends=(ruby)
12 options=('!emptydirs')
13 source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
14 noextract=($_gemname-$pkgver.gem)
15 sha512sums=('baa05634213a46da968a42e478db097c5bc47187e61807a3b3c30b8109a0fae63d587e5a3227b5bca75b921304b9d5e24a5ba945361dd5eba1c25235889c2cf1')
17 package() {
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"