2009/3/21 Daenyth Blank <daenyth+arch@xxxxxxxxx>: > I've made a draft of some packaging guidelines for ruby gems; anyone > care to comment or expand them? > > http://wiki.archlinux.org/index.php/Ruby_Gem_Package_Guidelines > Since ruby gems already have a specification file at http://gems.rubyforge.org/yaml I made a gem2arch script [1] which takes the name of the gem and the version as parameters and produces a PKGBUILD. Unfortunately, the yaml does not have any license information, so manual editing is still needed. [1]: http://github.com/abhidg/gem2arch/tree/master Example: $ gem2arch backlog 0.35.5 pkgname=ruby-backlog pkgver=0.35.5 _realname="backlog" pkgrel=1 pkgdesc="Application to aid collecting, processing, organizing, reviewing and doing tasks." arch=(any) url="http://rubyforge.org/projects/backlog/" license=() depends=('ruby' 'ruby-rails=1.2.4' 'ruby-gruff>0.2.9' 'ruby-postgres>0.7.9' \ 'ruby-slave>1.2.1' 'ruby-mechanize>0.8.4' 'ruby-hoe>=1.8.2') makedepends=(rubygems) source=(http://gems.rubyforge.org/gems/backlog-$pkgver.gem) noextract=(backlog-$pkgver.gem) build() { cd $srcdir local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" gem install --ignore-dependencies -i "$pkgdir$_gemdir" ${_realname}-$pkgver.gem } -- Abhishek