aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-actionpack-action_caching4.2/APKBUILD
blob: c7d7c1f3a5654b67d321c6ae596583aba0c0230f (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
40
41
42
43
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_gemname=actionpack-action_caching
pkgname=ruby-${_gemname}4.2
pkgver=1.1.1
pkgrel=0
pkgdesc="Action caching for Action Pack"
url="https://github.com/rails/actionpack-action_caching"
arch="noarch"
license="MIT"
depends="ruby ruby-actionpack4.2"
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
	
	cd "$pkgdir"
	for i in usr/lib/ruby/gems/*/bin/*; do
		if [ -e "$i" ]; then
			mkdir -p "$pkgdir"/usr/bin
			ln -s /$i "$pkgdir"/usr/bin/
		fi
	done
}

md5sums="6d7a86a85aa0d74322702280bde687a3  actionpack-action_caching-1.1.1.gem"
sha256sums="e7715ff3534d124e58fd40ebf6c05708d830fe2c71c2f2643ca060025b00b224  actionpack-action_caching-1.1.1.gem"
sha512sums="6ff988a5f715a8956826bb8941c15eabf9db1b08d223467cfb595c1596c955af86ddebea30a117aeff770092758d1940632acc13583aba9f3fd5793719e70efe  actionpack-action_caching-1.1.1.gem"