1 # Generated by gem2arch (https://github.com/anatol/gem2arch)
2 # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
3 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
9 pkgdesc='Manual page formatter that generates man pages from markdown'
11 url='https://github.com/apjanke/ronn-ng'
13 depends=(ruby ruby-rdiscount ruby-mustache ruby-kramdown ruby-nokogiri)
14 makedepends=('ruby-rdoc')
15 conflicts=('ruby-ronn')
16 provides=('ruby-ronn')
17 replaces=('ruby-ronn')
19 source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem"
20 '0001-allow-mustache-1.0.patch'
21 'source-date-epoch.patch::https://github.com/apjanke/ronn-ng/commit/ee042749944777f37ab184cadcacb89eee2e696a.patch')
22 noextract=($_gemname-$pkgver.gem)
23 sha256sums=('d04d8fe205e018dea9bb97e3bcf60d9853a326f90714ee5082752976ca739dea'
24 '9151397a0dc51392065de74bd52ab8e76e3ea5e3e810d0e557f2a67734633ea5'
25 '3a7a174e0d41fc87fae4a75600fa24a35a7d3608a948124f0960f2f07664f4c6')
28 local _gemdir="$(ruby -e'puts Gem.default_dir')"
29 gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
30 patch -d "$pkgdir/$_gemdir/specifications" -i "$srcdir/0001-allow-mustache-1.0.patch"
31 patch -d "$pkgdir/$_gemdir/gems/$_gemname-$pkgver" -Np1 < "$srcdir/source-date-epoch.patch"
32 rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
33 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
35 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/man/ronn.1" "$pkgdir/usr/share/man/man1/ronn.1"
36 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/man/ronn-format.7" "$pkgdir/usr/share/man/man7/ronn-format.7"
38 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/completion/bash/ronn" "$pkgdir/usr/share/bash-completion/completions/ronn"
39 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/completion/zsh/_ronn" "$pkgdir/usr/share/zsh/site-functions/_ronn"