summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0dc6739d39077cf8b1ee836ada8a0aafb4b4e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: farwayer <farwayer@gmail.com>

_gemname=tty-spinner
pkgname=ruby-$_gemname
pkgver=0.9.0
pkgrel=2
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'
  'ruby-tty-cursor>=0.6' 'ruby-tty-cursor<0.7'
)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('76df112351f79560493a0aa6bf695954e6353908')

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: