summaryrefslogtreecommitdiffstats
path: root/testing/ruby-nokogiri/APKBUILD
blob: d2fbed9c2886e1abfb4c66a6391bd4eefd73772e (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
_gemname=nokogiri
pkgname=ruby-$_gemname
pkgver=1.5.6
pkgrel=3
pkgdesc="An HTML, XML, SAX, and Reader parser"
url="http://nokogiri.org/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="ruby-dev libxml2-dev libxslt-dev libiconv-dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$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="5ccf492f60fd9edc4f86aef3bb97145c  nokogiri-1.5.6.gem"
sha256sums="28ab99eeba2270b336f8f9612e5b4aefdc673a7319ad874bf4c6092226826588  nokogiri-1.5.6.gem"
sha512sums="14f4f23732d2f759379fb4cef9afaad790d9553ca7d171d405a3cbba86c458e9853ae20ba622e00327a6d89c0976e17d60f6406c34cf2c15a1effeac66a201d6  nokogiri-1.5.6.gem"