blob: 05e6e6141f613d38b748f8f17e23c3e1d4e5e19d (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-rexml
_gemname=rexml
# Keep version in sync with "Bundled gems" (https://stdgems.org) for the
# packaged Ruby version.
pkgver=3.2.5
pkgrel=2
pkgdesc="An XML toolkit for Ruby"
url="https://github.com/ruby/rexml"
arch="noarch"
license="BSD-2-Clause"
depends="ruby"
checkdepends="ruby-test-unit"
makedepends="ruby-rdoc"
subpackages="$pkgname-doc"
source="https://github.com/ruby/rexml/archive/v$pkgver/ruby-rexml-$pkgver.tar.gz"
builddir="$srcdir/$_gemname-$pkgver"
[ "$CARCH" = "s390x" ] && options="!check"
build() {
gem build $_gemname.gemspec
}
check() {
ruby test/run.rb
}
package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
local geminstdir="$gemdir/gems/$_gemname-$pkgver"
gem install \
--local \
--install-dir "$gemdir" \
--ignore-dependencies \
--document ri \
--verbose \
$_gemname
# Remove unnecessary files and rubbish...
cd "$gemdir"
rm -r cache build_info extensions plugins
cd "$geminstdir"
rm -r doc LICENSE* *.md
}
doc() {
pkgdesc="$pkgdesc (ri docs)"
amove "$(ruby -e 'puts Gem.default_dir')"/doc
}
sha512sums="
9c62b789988b407bf4b02906768300b256734bfa342ef6b3551428ba2c1792b7e7e5a5480251d7df52318a5e5155757ab1377c0cc8d1d7c33278f33e367a5ca5 ruby-rexml-3.2.5.tar.gz
"
|