aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-nokogiri/APKBUILD
blob: 91b9af4fa877ade592ee03fbb630cb85d73d10c8 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
_gemname=nokogiri
pkgname=ruby-$_gemname
pkgver=1.6.5
pkgrel=0
pkgdesc="An HTML, XML, SAX, and Reader parser"
url="http://nokogiri.org/"
arch="all"
license="MIT"
depends="ruby ruby-mini_portile"
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 -- --use-system-libraries || \
		return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

md5sums="ac570aa0120b92185606919818d6ff92  nokogiri-1.6.5.gem"
sha256sums="f448c4e37442bf03b759c0e936ccffb498fde433ffdd670f3b9754a09cf9bdf6  nokogiri-1.6.5.gem"
sha512sums="f39f6f048bc09dd8ab316cf7f839c2b5d79398d7be6e01b4b9ce1d9dc66c1d6ae464b9618471a77d8e2494bf90d84d93a609666607737098985cee7395a9990d  nokogiri-1.6.5.gem"