aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-actionpack-xml_parser4.2/APKBUILD
blob: aaee47851dfe84a28847b425c20ccf1532e93df9 (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.1
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="0e97a8c533025b8fe6dafb318c878ab3  actionpack-xml_parser-1.0.1.gem"
sha256sums="9074f7d3ca7056c26671f025fe940438a5f416a8fa6297b7415294454016da1e  actionpack-xml_parser-1.0.1.gem"
sha512sums="5bf9d52772f00edbf8b2cc1ea1e2ecd74de74012e4b7c5e6b15dd26cac4db972633664438d0b930c757508e376f262d248b6a0e19bb6dcf6d9e072271bead30a  actionpack-xml_parser-1.0.1.gem"