summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBalló György2016-08-09 14:59:46 +0200
committerBalló György2016-08-09 14:59:46 +0200
commit675367ac1a5ec48bf2af69d0f702d22c4b51529f (patch)
tree623a403da0518fd95640585e6116d5852781bb22 /PKGBUILD
downloadaur-675367ac1a5ec48bf2af69d0f702d22c4b51529f.tar.gz
Add ruby-indentation
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ca203053564
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Contributor: Rhys <rhys@johnguant.com>
+
+_gemname=indentation
+pkgname=ruby-$_gemname
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='A library of extensions to Ruby'\''s Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.'
+arch=(any)
+url='http://samueldana.github.com/indentation/'
+license=('MIT')
+depends=(ruby)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('ffa788c6d6e490b75dba1743261835a661658c78')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+ rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+ install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/README.rdoc" "$pkgdir/usr/share/licenses/$pkgname/README.rdoc"
+}