aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-sprockets/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-sprockets/APKBUILD')
-rw-r--r--unmaintained/ruby-sprockets/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/unmaintained/ruby-sprockets/APKBUILD b/unmaintained/ruby-sprockets/APKBUILD
new file mode 100644
index 0000000000..e8bf132822
--- /dev/null
+++ b/unmaintained/ruby-sprockets/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=sprockets
+pkgname=ruby-$_gemname
+pkgver=3.2.0
+pkgrel=0
+pkgdesc="Rack-based asset packaging system"
+url="http://rubygems.org/gems/rack-test"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-rack"
+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="77c9db88e9cc82cde68e2e5caa9ccd4c sprockets-3.2.0.gem"
+sha256sums="bc04b32486d0928258eac4095bcf263178f43f2673d13fbbb728c99378587a92 sprockets-3.2.0.gem"
+sha512sums="e6dc72f1641f5c34af59fa34e6ddea34de9cd359509ab3cf4b363e14c9b58ce9397ceb42be6051617d4e1c25815b05a6d3c054584f08deae9605bc7a3a6bbbd9 sprockets-3.2.0.gem"