diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:25:10 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-06-11 15:25:10 +0000 |
commit | 7145b9ac4068b4ed0f12c137b5e4a5cf3dfc0c96 (patch) | |
tree | 46cf50d646ab3ccbcbbb193e84d08b6dfc41838e /testing/ruby-sequel/APKBUILD | |
parent | 7eb8c3148c1296bcd5ea00369e1b35d27b516b4b (diff) | |
download | aports-7145b9ac4068b4ed0f12c137b5e4a5cf3dfc0c96.tar.bz2 aports-7145b9ac4068b4ed0f12c137b5e4a5cf3dfc0c96.tar.xz |
testing/ruby-sequel: new aport
Diffstat (limited to 'testing/ruby-sequel/APKBUILD')
-rw-r--r-- | testing/ruby-sequel/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-sequel/APKBUILD b/testing/ruby-sequel/APKBUILD new file mode 100644 index 0000000000..ebd857f1d9 --- /dev/null +++ b/testing/ruby-sequel/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=sequel +pkgname=ruby-$_gemname +pkgver=3.48.0 +pkgrel=0 +pkgdesc="The Database Toolkit for Ruby" +url="https://rubygems.org/gems/$_gemname" +arch="noarch" +license="GPL" +depends="ruby" +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="ce7ee00e08405b5e796c22be9c608ddf sequel-3.48.0.gem" +sha256sums="5ef9ef0b85dc686a610f55ffd18e0b3a432a1155f48ddec9894e5a01b0986360 sequel-3.48.0.gem" +sha512sums="e3444d35064d1df77edab1af694ebbb7e90c2bb524a47b16e8ece0560ab7249b8d6fe36d752af587d78c82d6e9b553e90a422432afe83073aefd4750cec45c92 sequel-3.48.0.gem" |