summaryrefslogtreecommitdiffstats
path: root/testing/ruby-xml-simple/APKBUILD
blob: 8057fa47413cd19c9dd8345542dfb4ffc60de553 (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=xml-simple
pkgname=ruby-$_gemname
pkgver=1.1.2
pkgrel=0
pkgdesc="A simple API for XML processing."
url="https://rubygems.org/gems/$_gemname"
arch="noarch"
license="GPL"
depends="ruby"
depends_dev=""
makedepends="$depends_dev ruby-gems"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_realname-$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="22a848ab8b47727997d0ef3b118f2c58  xml-simple-1.1.2.gem"
sha256sums="ab35af3264c9c7e4090dc8302914eec4f7eac3fd526847d82d53d023e762285a  xml-simple-1.1.2.gem"
sha512sums="ad2bb25c8ca938d59529b0f510a68093e358f2b6e6871e0ed4452ef3e20c33656044ad9859b19fe403622f5f1ac0ac5a3ff4e6f2361273f907d69e5c64fb3cdd  xml-simple-1.1.2.gem"