summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fea76f3064f3a1043390bf1baddddfa074d2359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Colin Arnott <colin@urandom.co.uk>

pkgname=ruby-cache
pkgver=0.4.1
pkgrel=2
pkgdesc="Wraps memcached, redis(-namespace), memcache-client, dalli and handles their weirdnesses, including forking"
arch=(any)
url="https://github.com/seamusabshere/cache"
license=('N/A')
depends=('ruby')
makedepends=('rubygems')
optdepends=('ruby-activesupport' 'ruby-dalli' 'ruby-memcache-client' 'ruby-memcached' 'ruby-rack' 'ruby-redis' 'ruby-redis-namespace' 'ruby-test-unit' 'ruby-yard')
source=(https://rubygems.org/downloads/${pkgname#ruby-}-$pkgver.gem)
noextract=(${pkgname#ruby-}-$pkgver.gem)
sha256sums=('d73c092f754d673b3b4ca5a16d678d0c8b73a0d660a3af3c0fce6ff1c9ae5a1c')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --no-user-install --ignore-dependencies -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "${pkgname#ruby-}-$pkgver.gem"
  rm "$pkgdir/$_gemdir/cache/${pkgname#ruby-}-$pkgver.gem"
}