ruby-autoproj: added

This commit is contained in:
Sven Schneider 2013-05-26 19:39:28 +02:00
commit 876bb59de8
2 changed files with 45 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = ruby-autoproj
pkgdesc = Allows to easily install and maintain software that is under source code form (usually from a version control system).
pkgver = 1.9.2
pkgrel = 1
url = http://rock-robotics.org/stable/documentation/autoproj/
arch = any
license = GPL
makedepends = rubygems
depends = ruby
depends = ruby-autobuild
depends = ruby-highline
depends = ruby-utilrb
noextract = autoproj-1.9.2.gem
source = http://gems.rubyforge.org/gems/autoproj-1.9.2.gem
md5sums = aac2c804bc78dc9bdb74ebc0978494c1
pkgname = ruby-autoproj

27
PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
# Maintainer: Sven Schneider <youremail@domain.com>
_gemname=autoproj
pkgname=ruby-$_gemname
pkgver=1.9.2
pkgrel=1
pkgdesc="Allows to easily install and maintain software that is under source code form (usually from a version control system)."
arch=(any)
url="http://rock-robotics.org/stable/documentation/autoproj/"
license=('GPL')
depends=(ruby ruby-autobuild ruby-highline ruby-utilrb)
makedepends=(rubygems)
source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
md5sums=(aac2c804bc78dc9bdb74ebc0978494c1)
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: