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