summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD27
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..55e9bc2bbab
--- /dev/null
+++ b/.SRCINFO
@@ -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
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d07547e58a
--- /dev/null
+++ b/PKGBUILD
@@ -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: