aboutsummaryrefslogblamecommitdiffstats
path: root/unmaintained/ruby-multi_json/APKBUILD
blob: 151d67ffe79b7bc01efe2257a8cc57b4ddf1ee70 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                   
             
        





                                                                         
                               





















                                                                   


                                                                                                                                                                    
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ruby-multi_json
_gemname=multi_json
pkgver=1.11.0
pkgrel=0
pkgdesc="A gem to provide easy switching between different JSON backends"
url="http://rubygems.org/gems/multi_json"
arch="noarch"
license="custom"
depends="ruby ghostscript-fonts"
depends_dev="ruby-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="d9b22b25fd249e2b075cbac2ece6625b  multi_json-1.11.0.gem"
sha256sums="b43f3e049cf24e29402e580de816ce1b68e941d180c866879b0b4176c285e3d5  multi_json-1.11.0.gem"
sha512sums="1fed36187753c03b9c77b1f75b4bbeb48d1b91a89888fa76c1179096028a8d71bc5468de440e13a35ffea7883045caa7100a2323c11646ba010355c51462066d  multi_json-1.11.0.gem"