blob: 6da59a5d174e891381f1f8a302d222618a2f8396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-multi_json
_gemname=${pkgname#ruby-}
pkgver=1.12.1
pkgrel=0
pkgdesc="A gem to provide easy switching between different JSON backends"
url="http://rubygems.org/gems/multi_json"
arch="noarch"
license="custom"
depends="ruby"
source="$pkgname-$pkgver.tar.gz::https://github.com/intridea/$_gemname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
sed -i '/spec.signing_key/d' $_gemname.gemspec
}
build() {
cd "$builddir"
gem build $_gemname.gemspec
}
package() {
local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')"
local geminstdir="$gemdir/gems/$_gemname-$pkgver"
cd "$builddir"
gem install --local \
--install-dir "$gemdir" \
--ignore-dependencies \
--no-document \
--verbose \
$_gemname
rm "$geminstdir"/*.md
}
sha512sums="f61e500197c5a1373443b308bd9307238c54d2d23ba9da91843c667c12e491f34fd87575028c3630a81a7355d4903344996f20408bbb7971b12dfba3cc4f76df ruby-multi_json-1.12.1.tar.gz"
|