summaryrefslogtreecommitdiffstats
path: root/main/ruby-tzinfo/APKBUILD
blob: f905f90d09ec4813b968ca127a9d50549f7da0cd (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=tzinfo
pkgname=ruby-$_gemname
pkgver=1.0.1
pkgrel=1
pkgdesc="Ruby library to provide daylight savings aware transformations"
url="http://tzinfo.rubyforge.org/"
arch="noarch"
license="MIT"
depends="ruby"
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="764490ee7eea2b81bf1036135a92e24a  tzinfo-1.0.1.gem"
sha256sums="438297f420d1c48d55fc2a8df08e0b7ba47311f60fe02ad8212256612c505a42  tzinfo-1.0.1.gem"
sha512sums="f6cafe481dd36755d47a7ebc4cdd969c2a4648a01c1463d8e8061995272556ec0fd04f4df65978fd53faa638d3068c0a30efbfa66835fe8a6450092baaedf0f8  tzinfo-1.0.1.gem"