summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD23
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..612aacfd411
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-indentation
+ pkgdesc = A library of extensions to Ruby's Array and String classes that allow indentation manipulation of Strings and Arrays of Strings.
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = http://samueldana.github.com/indentation/
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = indentation-0.1.1.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/indentation-0.1.1.gem
+ sha1sums = ffa788c6d6e490b75dba1743261835a661658c78
+
+pkgname = ruby-indentation
+
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"
+}