summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6783245c8063e814852d26be9f498ce6c0748e7 (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: Olivier Biesmans <olivier at biesmans dot fr>
_gemname=insist
pkgname=ruby-$_gemname
pkgver=1.0.0
pkgrel=3
pkgdesc="A simple block-driven assertion library for both testing and for production code"
arch=(any)
url="https://github.com/jordansissel/ruby-insist"
license=('apache')
depends=(ruby)
makedepends=(rubygems)
source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=(6f6759eee583dc4e00a6cc3f713cfa7c570572958ba1f5d65595046d795b832f)

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -r 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: