summaryrefslogtreecommitdiffstats
path: root/testing/ruby-shoulda-context/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ruby-shoulda-context/APKBUILD')
-rw-r--r--testing/ruby-shoulda-context/APKBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/testing/ruby-shoulda-context/APKBUILD b/testing/ruby-shoulda-context/APKBUILD
index 4c4190990..c561a828e 100644
--- a/testing/ruby-shoulda-context/APKBUILD
+++ b/testing/ruby-shoulda-context/APKBUILD
@@ -1,35 +1,40 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
_gemname=shoulda-context
pkgname=ruby-shoulda-context
-pkgver=1.0.1
+pkgver=1.0.2
pkgrel=0
pkgdesc="Context framework extracted from Shoulda"
url="https://github.com/thoughtbot/shoulda"
arch="noarch"
license="MIT"
depends="ruby"
-depends_dev=
-makedepends="$depends_dev ruby-gems"
+depends_dev=""
+makedepends="ruby-dev ruby-gems"
install=""
subpackages=""
-source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"
-_builddir="$srcdir"/$_realname-$pkgver
+_builddir="$srcdir"/$_gemname-$pkgver
build() {
- return 0
-}
-
-package() {
+ mkdir -p "$_builddir" || return 1
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
+ 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
}
-md5sums="f7c0aaf97f462336cb0136635a679c4b shoulda-context-1.0.1.gem"
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}
+
+md5sums="01ad6b98a2644bda239037553ef2ccce shoulda-context-1.0.2.gem"
+sha256sums="ee5559aa13248c70fdec6868a3c144adf7438c904c59d1a76b04a002e5151de5 shoulda-context-1.0.2.gem"
+sha512sums="557b85b4e4941bfa92595e8b5f1c1cd37c10f82c2f65a4f645a2f7c56043ef67f7a8ae67fc66aee4ce450261c38f595b455a711159789227cfce14a7e341e7df shoulda-context-1.0.2.gem"