summaryrefslogtreecommitdiff
path: root/libre-testing/ronn/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 21:00:26 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-28 21:00:26 -0600
commit6b2c8aa7b11e2d30b8ed5353b7f135f3fdd94c2f (patch)
treec1bc2205c5c201ffa5bf6022714ae8745109fff2 /libre-testing/ronn/PKGBUILD
parent378ad0b28f2408c4fe5d2799c289fb7ba1c5e7da (diff)
add sh-roundup and its deps to libre-testing
Diffstat (limited to 'libre-testing/ronn/PKGBUILD')
-rw-r--r--libre-testing/ronn/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre-testing/ronn/PKGBUILD b/libre-testing/ronn/PKGBUILD
new file mode 100644
index 000000000..4bd097048
--- /dev/null
+++ b/libre-testing/ronn/PKGBUILD
@@ -0,0 +1,32 @@
+# 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=4
+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 -Dm644 "$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
+}