1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-patience_diff
6 pkgdesc='A Ruby implementation of the Patience diff algorithm'
8 url='https://github.com/watt/ruby_patience_diff'
10 depends=(ruby-optimist)
11 makedepends=(ruby-hoe ruby-rake)
13 source=(https://github.com/watt/ruby_patience_diff/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('3c767f112c46ff7a4f42224897786187c845bacd06882fb3cfdf40208c6ac142')
17 cd ruby_patience_diff-$pkgver
18 sed -r -e 's|~>|>=|' -i Rakefile
22 local _gemdir="$(gem env gemdir)"
23 cd ruby_patience_diff-$pkgver
28 --ignore-dependencies \
30 --install-dir "tmp_install/$_gemdir" \
31 --bindir "tmp_install/usr/bin" \
32 pkg/patience_diff-$pkgver.gem
33 find "tmp_install/$_gemdir/gems/" \
40 -iname "gem.build_complete" -o \
44 rm -r tmp_install/$_gemdir/cache
48 local _gemdir="$(gem env gemdir)"
49 cd ruby_patience_diff-$pkgver
50 GEM_HOME="tmp_install/$_gemdir" rake test
54 cd ruby_patience_diff-$pkgver
55 cp -a tmp_install/* "$pkgdir"/