aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-require/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-require/APKBUILD')
-rw-r--r--unmaintained/ruby-require/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/ruby-require/APKBUILD b/unmaintained/ruby-require/APKBUILD
new file mode 100644
index 0000000000..221cddb777
--- /dev/null
+++ b/unmaintained/ruby-require/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+_gemname=require
+pkgname=ruby-$_gemname
+pkgver=0.2.7
+pkgrel=1
+pkgdesc="A dependencies manager"
+url="http://github.com/winton/require"
+arch="noarch"
+license="MIT"
+depends="ruby"
+depends_dev=""
+makedepends="ruby-dev"
+install=""
+subpackages=""
+source="http://rubygems.org/downloads/$_gemname-$pkgver.gem"
+
+_builddir="$srcdir"/$_gemname-$pkgver
+build() {
+ mkdir -p "$_builddir" || return 1
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ 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
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}
+
+md5sums="9a1caf852bf72ebf251bc1ceb6a3dec0 require-0.2.7.gem"
+sha256sums="353fbb7f73faa1af266956999298e649e6ccd12a6d27397e813a9d6788ac1928 require-0.2.7.gem"
+sha512sums="f732967d21e2e834809b661bb69f7750e311fc833a4113481788d5410b3041f791161a25167181e89354d841893d57682273d4dfa8bf3b2643d1e141af83a66c require-0.2.7.gem"