diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:21:56 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:21:56 +0000 |
commit | 0990bbff31f91e24ef4d3d86478fe2bdcefccf14 (patch) | |
tree | 2e7a75caa1ffae3d7484f96bb3aa734b05acffe2 /testing/ruby-amazon-ec2/APKBUILD | |
parent | 72f4ff71cdc8cf22899cd0c5328a25ebd9869d9b (diff) | |
download | aports-0990bbff31f91e24ef4d3d86478fe2bdcefccf14.tar.bz2 aports-0990bbff31f91e24ef4d3d86478fe2bdcefccf14.tar.xz |
testing/ruby-amazon-ec2: new aport
Diffstat (limited to 'testing/ruby-amazon-ec2/APKBUILD')
-rw-r--r-- | testing/ruby-amazon-ec2/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-amazon-ec2/APKBUILD b/testing/ruby-amazon-ec2/APKBUILD new file mode 100644 index 0000000000..d563a1513e --- /dev/null +++ b/testing/ruby-amazon-ec2/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=amazon-ec2 +pkgname=ruby-$_gemname +pkgver=0.9.17 +pkgrel=0 +pkgdesc="Library for accessing the Amazon Web Services EC2, ELB, RDS, Cloudwatch, and Autoscaling APIs." +url="https://rubygems.org/gems/$_gemname" +arch="noarch" +license="GPL" +depends="ruby ruby-xml-simple" +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="66fe60764b90bd7f01e70069e93e5da4 amazon-ec2-0.9.17.gem" +sha256sums="4cbbd8cada5534cc6d081281b26bbb777c53410ea571829d0b7d0826b7d1e971 amazon-ec2-0.9.17.gem" +sha512sums="6138f95759e248bbf4d1633e042c7799ccf395a2e218e72f245abd56501a70079a0ea14c29c955b22fb33849699ad7268dba03e75493fd68594c9361a85ffd61 amazon-ec2-0.9.17.gem" |