summaryrefslogtreecommitdiffstats
path: root/main/ruby-builder/APKBUILD
blob: 28c01cac054a2b889cb58de61c77c8fe560c7ab4 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=builder
pkgname=ruby-$_gemname
pkgver=3.2.2
pkgrel=1
pkgdesc="Builder objects to simplify creating structured data"
url="http://rubygems.org/gems/builder"
arch="noarch"
license="GPL"
depends="ruby"
depends_dev=
makedepends="$depends_dev ruby"
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="14757f8118991be11f02e57b96cbba43  builder-3.2.2.gem"
sha256sums="62fb9ad70ea42219a0c8d209a30281803712c717df7cb8f5ce5f63b4d489d191  builder-3.2.2.gem"
sha512sums="785c0b5ea6682b590d3b92544910cac2d26d1b4906f0b0b502913c6c95365e173178ac1ec74d1dd0afe9b9fe6aac4d7f2ed712bf444682a029b86cdcd1787afa  builder-3.2.2.gem"