aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-sprockets-rails4.2/APKBUILD
blob: 5aa15ab9f90e273678a5f5d17ddaf2fa1e2a9bfc (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
_gemname=sprockets-rails
pkgname=ruby-${_gemname}4.2
pkgver=2.3.2
pkgrel=0
pkgdesc="Sprockets Rails integration"
url=http://rubygems.org/gems/$_gemname
arch=noarch
license=MIT
depends="ruby ruby-actionpack4.2 ruby-activesupport4.2
	ruby-sprockets"
makedepends=ruby
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="28010c218429ec0fd4f246be530496c3  sprockets-rails-2.3.2.gem"
sha256sums="cd3c2f55e7f1b3f95ef8b7bac05d7c38c8bcddc8acd03b67132fc7ce925162de  sprockets-rails-2.3.2.gem"
sha512sums="3cc6f1f8f74795b23427b617ca455942e2ed781de2c2026489412357e22bd1c96d5ead1e8877d2c8579f32418511aa77ac91a58ed32997f910f8b6cf37e11f24  sprockets-rails-2.3.2.gem"