diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:22:27 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:22:27 +0000 |
commit | 9f58fefb706987bc45e9d54df579d96cda47acb1 (patch) | |
tree | aa91c25e61f0b670d4fc132e054fa15f60d5d971 | |
parent | 0990bbff31f91e24ef4d3d86478fe2bdcefccf14 (diff) | |
download | aports-9f58fefb706987bc45e9d54df579d96cda47acb1.tar.bz2 aports-9f58fefb706987bc45e9d54df579d96cda47acb1.tar.xz |
testing/ruby-crack: new aport
-rw-r--r-- | testing/ruby-crack/APKBUILD | 39 |
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" |