summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d07547e58a87d2e411e99fffd14740d5d5f1a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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: