diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-25 20:47:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-26 14:21:43 +0000 |
commit | dcda35c0c125d1af3d91c5cb06fc4716cd3ad390 (patch) | |
tree | 7d1bba04238132d4cd82dea074efb3d06eb994da /main/ruby-sprockets-rails4.2/APKBUILD | |
parent | fcf3eabf21a71cf250888d0fb529746bfe9bfb04 (diff) | |
download | aports-dcda35c0c125d1af3d91c5cb06fc4716cd3ad390.tar.bz2 aports-dcda35c0c125d1af3d91c5cb06fc4716cd3ad390.tar.xz |
main/ruby-sprockets-rails4.2: rename and upgrade to 2.2.4
Diffstat (limited to 'main/ruby-sprockets-rails4.2/APKBUILD')
-rw-r--r-- | main/ruby-sprockets-rails4.2/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/ruby-sprockets-rails4.2/APKBUILD b/main/ruby-sprockets-rails4.2/APKBUILD new file mode 100644 index 0000000000..d121c80772 --- /dev/null +++ b/main/ruby-sprockets-rails4.2/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +_gemname=sprockets-rails +pkgname=ruby-${_gemname}4.2 +pkgver=2.2.4 +pkgrel=0 +pkgdesc="Sprockets Rails integration" +url=http://rubygems.org/gems/$_gemname +arch=noarch +license=MIT +depends="ruby ruby-actionpack4.2 ruby-activesupport4.2 + ruby-sprockets" +makedepends=ruby +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="8a49edf5f6f29a3066291e137f2df1b6 sprockets-rails-2.2.4.gem" +sha256sums="ec11878bd0f07aba4063eca24ec3327b9e1fff04f24b66f37e4e6386c66b4c9c sprockets-rails-2.2.4.gem" +sha512sums="c7a7c701ebaa4f88d189e1385a2f1872c6b08e2175030e54f9366770f70d558e914918a1dcdc032c47eaa225b0c16747be7c88a4b3fa5f33dd17bc625f645bfd sprockets-rails-2.2.4.gem" |