aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-crack
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ruby-crack')
-rw-r--r--testing/ruby-crack/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-crack/APKBUILD b/testing/ruby-crack/APKBUILD
new file mode 100644
index 0000000000..6c5e02abc4
--- /dev/null
+++ b/testing/ruby-crack/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=crack
+pkgname=ruby-$_gemname
+pkgver=0.4.0
+pkgrel=0
+pkgdesc="Really simple JSON and XML parsing, ripped from Merb and Rails."
+url="https://rubygems.org/gems/$_gemname"
+arch="noarch"
+license="GPL"
+depends="ruby ruby-safe_yaml"
+depends_dev=
+makedepends="$depends_dev ruby-gems"
+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="125d7b18df465d9190859a8d01251cab crack-0.4.0.gem"
+sha256sums="3d2eac4f7b86317181cc7374385c9eba28eada741d95734b5c35cdf45aead05f crack-0.4.0.gem"
+sha512sums="2f2aa4456ec1d565cbd3ddb84f7c4161f19989e04f70e8c50516da697ca801fb46e0737a916cf4bf7eca37c8c778b142abb8907a6bb8e0856d8bc99fbe8a8850 crack-0.4.0.gem"