1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='A fast native templating system that compiles directly to Ruby code'
8 url='https://github.com/ioquatix/trenni'
11 makedepends=(ragel ruby-bake ruby-benchmark-ips ruby-covered ruby-rack ruby-nokogiri)
12 checkdepends=(ruby-rspec)
14 source=(https://github.com/ioquatix/trenni/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
15 sha256sums=('7c45d5d27f75843df66a8857d03db687220b748e9b92bb970bd7aaf3ab45dfab')
19 sed -e 's/~>/>=/' -i trenni.gemspec
20 sed -i '/ruby-prof/d;/bake-gem/d;/bake-modernize/d' gems.rb
24 local _gemdir="$(gem env gemdir)"
26 bake trenni:parsers:generate
27 gem build trenni.gemspec
31 --ignore-dependencies \
33 --install-dir "tmp_install/$_gemdir" \
34 --bindir "tmp_install/usr/bin" \
36 find "tmp_install/$_gemdir/gems/" \
43 -iname "gem.build_complete" -o \
47 rm -r tmp_install/$_gemdir/cache
51 local _gemdir="$(gem env gemdir)"
53 GEM_HOME="tmp_install/$_gemdir" rspec
58 cp -a tmp_install/* "$pkgdir"/