summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd51f35eb27fd22d660078af0d3c37fe319788e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Mario Finelli <mario at finel dot li>

_gemname=dry-equalizer
pkgname=ruby-$_gemname
pkgver=0.2.0
pkgrel=1
pkgdesc='Module to define equality, equivalence and inspection methods.'
arch=(any)
url='https://github.com/dkubb/equalizer'
license=(MIT)
depends=(ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha256sums=('04eb741cdef5e07a68ce34215034b80c4ead2d8e0e8da81bf79616438841f201')

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -e'puts Gem.default_dir')"

  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
}