diff options
Diffstat (limited to 'main/ruby-redmine-rack/APKBUILD')
-rw-r--r-- | main/ruby-redmine-rack/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/ruby-redmine-rack/APKBUILD b/main/ruby-redmine-rack/APKBUILD new file mode 100644 index 0000000000..647f4a0620 --- /dev/null +++ b/main/ruby-redmine-rack/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=ruby-redmine-rack +_gemname=rack +pkgver=1.4.5 +pkgrel=0 +pkgdesc="Rack is a Ruby Webserver Interface" +url="http://rack.rubyforge.org/" +arch="noarch" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="$depends_dev ruby" +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="6661d225210f6b48f83fb279aba0a149 rack-1.4.5.gem" +sha256sums="f7bf3faa8e09a2ff26475372de36a724e7470d6bdc33d189a0ec34b49605f308 rack-1.4.5.gem" +sha512sums="061e7134a845b1ad4371b17aec2aae15add75fa6ff26b4440102e11962b18d8f89b0598ee2497a3caa2677b84f42929d901afb5b1c6db1748716f16a6039574f rack-1.4.5.gem" |