aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/ruby-abn/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/ruby-abn/APKBUILD b/testing/ruby-abn/APKBUILD
new file mode 100644
index 0000000000..8e44988e48
--- /dev/null
+++ b/testing/ruby-abn/APKBUILD
@@ -0,0 +1,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=0
+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 ruby-gems"
+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"