summaryrefslogtreecommitdiffstats
path: root/testing/ruby-abn/APKBUILD
blob: 4adf2bc2dd6d027adf63ce47332dcd8d09a00040 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
_gemname=abn
pkgname=ruby-$_gemname
pkgver=2.0.0
pkgrel=1
pkgdesc="A small library for working with Australian Business Numbers"
url="http://rubygems.org/gems/abn"
arch="noarch"
license="MIT"
depends="ruby"
depends_dev="ruby-dev"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"

_builddir="$srcdir"/$_gemname-$pkgver
build() {
	mkdir -p "$_builddir" || return 1
	local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
	gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \
		--ignore-dependencies \
		--verbose \
		--no-rdoc \
		--no-ri \
		|| return 1
	rm -rf "$pkgdir"/$_gemdir/cache \
		"$pkgdir"/$_geminstdir/ext \
		"$pkgdir"/$_geminstdir/.require_paths
}

package() {
	mkdir -p "$pkgdir" || return 1
	cp -ra "$_builddir"/* "$pkgdir"/ || return 1
}

md5sums="028de258f4027e7f8af27010070390fe  abn-2.0.0.gem"
sha256sums="8938ec55432e74e6a19dab9cf18b81379f15f72b3c461a058a97053a92d4ec9a  abn-2.0.0.gem"
sha512sums="869a8ee9b73e587a6438014691ac112603c08aca26230b3e5912b8ab9e486c6087362f717aafe2715b29759c115ed164e4fcae3374bc420756c8a44e249e5094  abn-2.0.0.gem"