summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3eac10a0c409600eaf1f3852619dd95d8dc05f4e (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
# Maintainer: Barry Smith <brrtsm at gmail. ddot com>
# Contributor: Sigmund Vestergaard <sigmundv at gmail dot com>
_gemname=erubis
pkgname=ruby-$_gemname
pkgver=2.7.0
pkgrel=4
pkgdesc="A fast, secure, and very extensible implementation of eRuby."
arch=(any)
url="http://www.kuwata-lab.com/erubis/"
license=('MIT')
depends=(ruby)
makedepends=(ruby-rdoc)
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
noextract=($_gemname-$pkgver.gem)
sha256sums=('63653f5174a7997f6f1d6f465fbe1494dcc4bdab1fb8e635f6216989fb1148ba')

package() {
  cd "$srcdir"
  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"
}

# vim:set ts=2 sw=2 et: