1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Contributor: [email protected]

pkgname=ruby-redis
pkgver=3.0.3
_gemname="redis"
pkgrel=1
pkgdesc="Ruby client library for Redis, the key value storage server"
arch=(any)
url="https://github.com/redis/redis-rb"
license=("GPL")
depends=('ruby')
source=(http://rubygems.org/downloads/redis-${pkgver}.gem)
noextract=(redis-${pkgver}.gem)

package() {
	cd "$srcdir"
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" ${_gemname}-$pkgver.gem
}

md5sums=('f28a60329461a6068919aa6360499831')