blob: 092a922a941d20e3b9c8ec43df763e9d9aa73ec7 (
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
28
29
|
# Maintainer : Greg Sutcliffe <puppet-aur (at) emeraldreverie (dot) org>
# Contributor: Niels Abspoel <aboe76 (at) Gmail (dot) com>
_gemname=rgen
pkgname=ruby-$_gemname
#_rc=1
#_pkgver=0.6.2
#pkgver=${_pkgver}.rc${_rc}
pkgver=0.9.1
pkgrel=1
pkgdesc="Ruby Modelling and Generator Framework"
arch=(any)
url="https://github.com/mthiede/rgen"
license=('MIT')
depends=('ruby')
makedepends=('rubygems' 'binutils')
source=(https://rubygems.org/downloads/$_gemname-${pkgver//_/-}.gem)
noextract=($_gemname-${pkgver//_/-}.gem)
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 -rrubygems -e'puts Gem.default_dir')"
gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" \
-n "${pkgdir}/usr/bin" "${_gemname}-${pkgver//_/-}.gem"
}
sha256sums=('771751201721cb120cd2ba536efb19fdead25c3558319217b7d14cf5b31b6fa9')
|