1 # Maintainer: David Campbell <davekong@archlinux.us>
5 pkgdesc="A framework-agnostic way to render logic-free views."
7 url="http://github.com/defunkt/mustache"
10 makedepends=('rubygems')
11 source=("http://gems.rubyforge.org/gems/mustache-${pkgver}.gem")
12 noextract=("mustache-${pkgver}.gem")
16 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
17 gem install --ignore-dependencies -i "$pkgdir$_gemdir" mustache-$pkgver.gem \
20 install -Dm644 $pkgdir/usr/lib/ruby/gems/1.9.1/gems/mustache-$pkgver/LICENSE \
21 $pkgdir/usr/share/licenses/$pkgname/LICENSE
22 install -Dm644 $pkgdir/usr/lib/ruby/gems/1.9.1/gems/mustache-$pkgver/man/mustache.1 \
23 $pkgdir/usr/share/man/man1/mustache.1
24 install -Dm644 $pkgdir/usr/lib/ruby/gems/1.9.1/gems/mustache-$pkgver/man/mustache.5 \
25 $pkgdir/usr/share/man/man5/mustache.5
28 # vim:set ts=2 sw=2 et:
29 md5sums=('650194ec2c166feb087377647414b9dc')