diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /libre/ronn | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'libre/ronn')
-rw-r--r-- | libre/ronn/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/libre/ronn/PKGBUILD b/libre/ronn/PKGBUILD new file mode 100644 index 000000000..3f8d0470e --- /dev/null +++ b/libre/ronn/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_gemname=ronn +pkgname=$_gemname +pkgver=0.7.3 +pkgdesc="The opposite of roff; manual authoring tool" +url="http://rtomayko.github.io/ronn/" +license=('custom:MIT') + +provides=(ruby-$_gemname=$pkgver) + +pkgrel=5 +arch=('any') +depends=('ruby' 'ruby-hpricot' 'ruby-rdiscount' 'ruby-mustache') +makedepends=('rubygems') +source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +md5sums=('c5aa4ef58d35d0cc635b769281e03225') + +package() { + cd "$srcdir" + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" \ + "$_gemname-$pkgver.gem" + + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -sr "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/COPYING \ + "$pkgdir"/usr/share/licenses/$pkgname/COPYING + + shopt -s nullglob + for file in "$pkgdir$_gemdir"/gems/$_gemname-$pkgver/man/*.{1..8}; do + install -Dm644 "$file" "$pkgdir"/usr/share/man/man${file##*.}/${file##*/} + done +} |