diff options
author | Sven Schneider | 2013-05-26 19:39:40 +0200 |
---|---|---|
committer | Sven Schneider | 2013-05-26 19:39:40 +0200 |
commit | 51450f6326710a947898c390d09c6d6f1a32cd45 (patch) | |
tree | ac49982a5afceb92c3a0269389a7f26949b45fe0 | |
download | aur-51450f6326710a947898c390d09c6d6f1a32cd45.tar.gz |
ruby-utilrb: added
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b90f722eca2e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ruby-utilrb + pkgdesc = Yet another Ruby toolkit, in the spirit of facets + pkgver = 1.6.6 + pkgrel = 1 + url = http://utilrb.rubyforge.org/utilrb/ + arch = any + license = GPL + makedepends = rubygems + depends = ruby + depends = ruby-facets + noextract = utilrb-1.6.6.gem + source = http://gems.rubyforge.org/gems/utilrb-1.6.6.gem + md5sums = a2295caedf8453c6a36d84c231e2682c + +pkgname = ruby-utilrb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..41fe6164ed83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Sven Schneider <youremail@domain.com> + +_gemname=utilrb +pkgname=ruby-$_gemname +pkgver=1.6.6 +pkgrel=1 +pkgdesc="Yet another Ruby toolkit, in the spirit of facets" +arch=(any) +url="http://utilrb.rubyforge.org/utilrb/" +license=('GPL') +depends=(ruby ruby-facets) +makedepends=(rubygems) +source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +md5sums=(a2295caedf8453c6a36d84c231e2682c) + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \ + "$_gemname-$pkgver.gem" +} + +# vim:set ts=2 sw=2 et: |