blob: 6c5e02abc41b13d8380b5464ffc36bf91db04f04 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=crack
pkgname=ruby-$_gemname
pkgver=0.4.0
pkgrel=0
pkgdesc="Really simple JSON and XML parsing, ripped from Merb and Rails."
url="https://rubygems.org/gems/$_gemname"
arch="noarch"
license="GPL"
depends="ruby ruby-safe_yaml"
depends_dev=
makedepends="$depends_dev ruby-gems"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
_builddir="$srcdir"/$_realname-$pkgver
build() {
return 0
}
package() {
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
local _geminstdir=$_gemdir/gems/$_gemname-$pkgver
mkdir -p "$pkgdir" || return 1
gem install --local --install-dir "$pkgdir"/$_gemdir \
--ignore-dependencies --verbose --no-rdoc --no-ri \
"$srcdir"/$_gemname-$pkgver.gem || return 1
rm -rf "$pkgdir"/$_gemdir/cache \
"$pkgdir"/$_geminstdir/ext \
"$pkgdir"/$_geminstdir/.require_paths
}
md5sums="125d7b18df465d9190859a8d01251cab crack-0.4.0.gem"
sha256sums="3d2eac4f7b86317181cc7374385c9eba28eada741d95734b5c35cdf45aead05f crack-0.4.0.gem"
sha512sums="2f2aa4456ec1d565cbd3ddb84f7c4161f19989e04f70e8c50516da697ca801fb46e0737a916cf4bf7eca37c8c778b142abb8907a6bb8e0856d8bc99fbe8a8850 crack-0.4.0.gem"
|