summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby-rdoc/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-23 16:21:48 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-23 16:21:48 (GMT)
commit0bcbc7ed8647051fcf46b8f53babb8e671f89f41 (patch)
tree1d47ac22bc3c0b835b573a65fdedc2e626805bc3 /abs/extra/ruby-rdoc/PKGBUILD
parent764b2aebbbb508f63213286150a1c09ee10968cd (diff)
downloadlinhes_pkgbuild-0bcbc7ed8647051fcf46b8f53babb8e671f89f41.zip
linhes_pkgbuild-0bcbc7ed8647051fcf46b8f53babb8e671f89f41.tar.gz
linhes_pkgbuild-0bcbc7ed8647051fcf46b8f53babb8e671f89f41.tar.bz2
ruby-rdoc: initial
Diffstat (limited to 'abs/extra/ruby-rdoc/PKGBUILD')
-rw-r--r--abs/extra/ruby-rdoc/PKGBUILD21
1 files changed, 21 insertions, 0 deletions
diff --git a/abs/extra/ruby-rdoc/PKGBUILD b/abs/extra/ruby-rdoc/PKGBUILD
new file mode 100644
index 0000000..aeb0c8c
--- /dev/null
+++ b/abs/extra/ruby-rdoc/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
+
+_gemname=rdoc
+pkgname=ruby-$_gemname
+pkgver=6.0.1
+pkgrel=1
+pkgdesc='Command-line documentation generator for Ruby projects'
+arch=(any)
+url='https://ruby.github.io/rdoc/'
+license=(MIT)
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('ba0979650b3637cd00126d50d631e381caff72a7')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+}