aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-mail/APKBUILD
blob: b0132c0553984bf9bebb3401f8d595356259957a (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=mail
pkgname=ruby-$_gemname
pkgver=2.5.4
pkgrel=3
pkgdesc="A really Ruby Mail handler"
url="http://github.com/mikel/mail"
arch="noarch"
license="MIT"
depends="ruby ruby-mime-types ruby-treetop"
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="209b00419b063d4cbfeeab01c2cfaf62  mail-2.5.4.gem"
sha256sums="446585c38b062121252688dcc9cc70af1f470822e30db021bb97d185969e257c  mail-2.5.4.gem"
sha512sums="31a6ade810907643eadadd3edcf3fc7475c429e29cdbbf43f676dd20968753c754118b7c5610f1a2a32b047ae7ea594cf5867c267fe2f98c78a0f82eddd4615f  mail-2.5.4.gem"