aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-nokogiri/APKBUILD
blob: 26abb99b4e354dd4b96bb92fd5697980e47aafdf (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>

_gemname=nokogiri
pkgname=ruby-$_gemname
pkgver=1.6.7.2
pkgrel=0
pkgdesc="Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser"
arch="all"
url="http://nokogiri.org"
license="MIT"
depends="ruby"
depends_dev="ruby-dev libxml2-dev libxslt-dev zlib-dev xz-dev"
makedepends="$depends_dev ruby-mini_portile2"
source="https://rubygems.org/downloads/$_gemname-$pkgver.gem"
builddir="$srcdir"/$_gemname-$pkgver
build() {
        mkdir -p "$builddir" || return 1
        export _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install \
		--no-ri \
		--no-rdoc \
		$_gemname -v $pkgver -i "$builddir"$_gemdir -- \
		--use-system-libraries \
                --ignore-dependencies \
                --verbose \
                || return 1
        rm -rf "$pkgdir"/$_gemdir/cache \
                "$pkgdir"/$_geminstdir/ext \
                "$pkgdir"/$_geminstdir/.require_paths
}

package() {
        mkdir -p "$pkgdir" || return 1
        cp -ra "$builddir"/* "$pkgdir"/ || return 1
}

md5sums="3e2169ebd67863a8a992289e2a887366  nokogiri-1.6.7.2.gem"
sha256sums="fb6afc0faec72b82eeccc84b5d11211aa6c4a81898a433b499ca7a60fcad4b87  nokogiri-1.6.7.2.gem"
sha512sums="27f72763f4f572b9a7042b48bd3a7a7516773eda128be603b8316e8ecaef42028f3d3a190947011cc6973fa4a43265a56f4b563bf28a8b2739b470cc19cee6cd  nokogiri-1.6.7.2.gem"