summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarwayer2018-02-10 18:04:45 +0300
committerfarwayer2018-02-10 18:04:45 +0300
commit0a297588150ace1a0183eee663d1b860dac3a036 (patch)
treeb6826b0ce8445fe1c2792d448d66df6565b92e8f
downloadaur-0a297588150ace1a0183eee663d1b860dac3a036.tar.gz
init
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD24
3 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e7ae7fb3b84
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ruby-tty-spinner
+ pkgdesc = A terminal spinner for tasks that have non-deterministic time frame.
+ pkgver = 0.8.0
+ pkgrel = 1
+ url = http://github.com/piotrmurach/tty-spinner
+ arch = any
+ license = MIT
+ depends = ruby
+ noextract = tty-spinner-0.8.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/tty-spinner-0.8.0.gem
+ sha1sums = 2b469319e91b83962c1634d96d5289f6d4102fb4
+
+pkgname = ruby-tty-spinner
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..789b6f823ad
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: farwayer <farwayer@gmail.com>
+
+_gemname=tty-spinner
+pkgname=ruby-$_gemname
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="A terminal spinner for tasks that have non-deterministic time frame."
+arch=('any')
+url="http://github.com/piotrmurach/tty-spinner"
+license=('MIT')
+depends=('ruby')
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha1sums=('2b469319e91b83962c1634d96d5289f6d4102fb4')
+
+package() {
+ cd "$srcdir"
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" $_gemname-$pkgver.gem
+ rm "$pkgdir$_gemdir/cache/$_gemname-$pkgver.gem"
+}
+
+# vim:set ts=2 sw=2 et: