summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJames An2017-03-17 16:00:22 -0400
committerJames An2017-03-17 16:00:22 -0400
commit8dfc9840b1695a46d49157e1110e7d3130a20684 (patch)
treeb401fb55f338c7ba2eee4e6a973755aafd758357 /PKGBUILD
downloadaur-ruby-textutils.tar.gz
Initial commit with working PKGBUILD generated by gem2arch.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e0f055a45d1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Generated by gem2arch (https://github.com/anatol/gem2arch)
+# Maintainer: James An <james@jamesan.ca>
+
+_gemname=textutils
+pkgname=ruby-$_gemname
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='textutils - Text Filters, Helpers, Readers and More'
+arch=(any)
+url='https://github.com/textkit/textutils'
+license=('Public Domain')
+depends=(ruby ruby-props ruby-logutils ruby-rubyzip ruby-activesupport)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('004b1338824a661bdcf05ae8f44604e7763f3ec0')
+
+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"
+}