blob: 6637160f77ececc68ac50ab1e8268dcf3f871de0 (
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
43
44
45
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=actionpack-xml_parser
pkgname=ruby-${_gemname}4.2
pkgver=1.0.2
pkgrel=0
pkgdesc="XML parameters parser for Action Pack"
url="http://www.rubyonrails.org/"
arch="noarch"
license="MIT"
depends="ruby ruby-actionpack4.2"
depends_dev=
makedepends="$depends_dev"
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
cd "$pkgdir"
for i in usr/lib/ruby/gems/*/bin/*; do
if [ -e "$i" ]; then
mkdir -p "$pkgdir"/usr/bin
ln -s /$i "$pkgdir"/usr/bin/
fi
done
}
md5sums="2c3f9c8644f8fcf70d9b9ef3fa8beb6e actionpack-xml_parser-1.0.2.gem"
sha256sums="6a3e2441711e3885d2fb6f6530049bb4672cf6ffb98c88dce9e8997e9a25559d actionpack-xml_parser-1.0.2.gem"
sha512sums="38539e43a414a2fdb9786f7830b47ee22786f13688ba11fcbd585f41ed472f1bbcc521c35bf87c7c59ad8a5ba3663ebbaa21bf7c0a2a94a1ac77e6b3fc1c0f3f actionpack-xml_parser-1.0.2.gem"
|