aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-sprockets/APKBUILD
blob: e8bf1328223c3d78df677d0c9a65dd9216f6b444 (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=sprockets
pkgname=ruby-$_gemname
pkgver=3.2.0
pkgrel=0
pkgdesc="Rack-based asset packaging system"
url="http://rubygems.org/gems/rack-test"
arch="noarch"
license="MIT"
depends="ruby ruby-rack"
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="77c9db88e9cc82cde68e2e5caa9ccd4c  sprockets-3.2.0.gem"
sha256sums="bc04b32486d0928258eac4095bcf263178f43f2673d13fbbb728c99378587a92  sprockets-3.2.0.gem"
sha512sums="e6dc72f1641f5c34af59fa34e6ddea34de9cd359509ab3cf4b363e14c9b58ce9397ceb42be6051617d4e1c25815b05a6d3c054584f08deae9605bc7a3a6bbbd9  sprockets-3.2.0.gem"