aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-spruz/APKBUILD
blob: 57b6c8dc4902920afcfa0d8b76e7ee8319637295 (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
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=ruby-spruz
_gemname=spruz
pkgver=0.2.13
pkgrel=1
pkgdesc="All the stuff that isn't good/big enough for a real library."
url="http://rubygems.org/gems/spruz"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev="ruby-dev"
makedepends="$depends_dev"
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="06295f3d8047322201c2a1d1573c80ed  spruz-0.2.13.gem"
sha256sums="c195d5f7c4199f289c88687cfe3561b15367ec262a7767374eb2d969b9fe2e7a  spruz-0.2.13.gem"
sha512sums="544df856363e4d01b5bf7c37a5e92073e82a4b97607d0ca3e751353615a1321d0a4ade2ef503ab78e60491a12100e6b45d2ae3d1565d8fd91db47cffaf461629  spruz-0.2.13.gem"