blob: f75d3dbf73b4e1b7066efcd31bfea998db8bff2c (
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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
_gemname=nokogiri
pkgname=ruby-$_gemname
pkgver=1.6.6.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"
makedepends="$depends_dev"
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 $_gemname -v $pkgver -i "$_builddir"$_gemdir -- \
--use-system-libraries \
--ignore-dependencies \
--verbose \
--no-rdoc \
--no-ri \
|| 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="fc9f91534bf93d57b84f625b55732a7c nokogiri-1.6.6.2.gem"
sha256sums="60c060c694a62145b9224413efa346de5a893582c1fbc0326bc74089c5d898c8 nokogiri-1.6.6.2.gem"
sha512sums="bb0422878e690648ab154c7d1ab0bd4fd9ec0875b2f0be0292ba9cb5541ea33b770794a7ba411e603a06472af4f9a3337ec8ff5d74debd826fc63f1d3ab1d5f1 nokogiri-1.6.6.2.gem"
|