aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-mustache/APKBUILD
blob: 840ba108521bb640a3b5446b3c273763659010a9 (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: Seung Soo Mun <hamletmun@gmail.com>
# Maintainer:
_gemname=mustache
pkgname=ruby-$_gemname
pkgver=0.99.5
pkgrel=0
pkgdesc="Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views"
url="http://rubygems.org/gems/$_gemname"
arch="noarch"
license="MIT"
depends="ruby"
depends_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="fa5bb8c782febd55b2f4f47809b40acf  mustache-0.99.5.gem"
sha256sums="c84be205017ada80aa4d4ad16b7af4bd89f840b26125a0e8eead5a914d279005  mustache-0.99.5.gem"
sha512sums="fa85db8a2d0beea5bac93bf4214db0b65d275b7a01b4a16dbfcab0084d6a7701060d7b7cf090901830fbae2db5caa1973af427396407040053af9966782b55ef  mustache-0.99.5.gem"