I created a pacman wrapper program which allows direct installation of rubygems. It is called pacgem and available in AUR.
The program does the following steps:
- Resolve gem dependencies
- Create PKGBUILD
- Generate package using makepkg
- Check package with namcap
- Optionally install package with sudo pacman -U
The generates package tries to do the best in fixing bad rubygem practices. It has a automatic detection for dynamic linking dependencies using `readelf`. Man pages are installed to /usr/share/man and the license file to /usr/share/licenses if the gem provides a custom license.
I would be interested in some feedback and testing. I tested it with ruby 1.9.2 and 1.8.7 and some ruby packages (haml, rack, unicorn). The goal is to get the package quality to an acceptable level (comparable to hand written PKGBUILD). There are nearly no complaints of namcap for the packages I tested.