diff options
author | Mario Finelli | 2023-04-12 14:57:36 +0200 |
---|---|---|
committer | Mario Finelli | 2023-04-12 14:57:36 +0200 |
commit | 1a97ba8880b61791d6f9734eb6ba875cfd641d82 (patch) | |
tree | 96668440a88a654ea30d5ea1e7090f982818ee89 | |
parent | 018fcdd45c185fba25f94b8b802bfca07ecf2845 (diff) | |
download | aur-ruby-tty-cursor.tar.gz |
upgpkg: ruby-tty-cursor 0.7.1-1
upstream release
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 47 insertions, 20 deletions
@@ -1,15 +1,18 @@ pkgbase = ruby-tty-cursor - pkgdesc = The purpose of this library is to help move the terminal cursor around and manipulate text by using intuitive method calls. - pkgver = 0.7.0 + pkgdesc = Terminal cursor movement and manipulation + pkgver = 0.7.1 pkgrel = 1 - url = http://piotrmurach.github.io/tty/ + url = https://github.com/piotrmurach/tty-cursor arch = any license = MIT + checkdepends = ruby-bundler + checkdepends = ruby-rake + checkdepends = ruby-rspec + makedepends = rubygems + makedepends = ruby-rdoc depends = ruby - noextract = tty-cursor-0.7.0.gem options = !emptydirs - source = https://rubygems.org/downloads/tty-cursor-0.7.0.gem - sha1sums = 4fcc5ccf12b138887dda3b39d105473b54fe4f04 + source = https://github.com/piotrmurach/tty-cursor/archive/v0.7.1.tar.gz + sha256sums = d957a1151af0d747607b359be00d526f10e2831f94c2eaf2548778ab2bdcc3e3 pkgname = ruby-tty-cursor - diff --git a/.gitignore b/.gitignore index 05c6d4d4c97b..f71c635dafda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ * !.gitignore -!.SRCINFO !PKGBUILD +!.SRCINFO @@ -1,22 +1,46 @@ -# Generated by gem2arch (https://github.com/anatol/gem2arch) -# Maintainer: farawayer <farwayer@gmail.com> +# Maintainer: Mario Finelli <mario at finel dot li> +# Contributor: farawayer <farwayer@gmail.com> _gemname=tty-cursor pkgname=ruby-$_gemname -pkgver=0.7.0 +pkgver=0.7.1 pkgrel=1 -pkgdesc='The purpose of this library is to help move the terminal cursor around and manipulate text by using intuitive method calls.' +pkgdesc="Terminal cursor movement and manipulation" arch=(any) -url='http://piotrmurach.github.io/tty/' +url=https://github.com/piotrmurach/tty-cursor license=(MIT) -depends=(ruby) options=(!emptydirs) -source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) -noextract=($_gemname-$pkgver.gem) -sha1sums=('4fcc5ccf12b138887dda3b39d105473b54fe4f04') +depends=(ruby) +checkdepends=(ruby-bundler ruby-rake ruby-rspec) +makedepends=(rubygems ruby-rdoc) +source=(${url}/archive/v${pkgver}.tar.gz) +sha256sums=('d957a1151af0d747607b359be00d526f10e2831f94c2eaf2548778ab2bdcc3e3') + +build() { + cd $_gemname-$pkgver + gem build ${_gemname}.gemspec +} + +check() { + cd $_gemname-$pkgver + rake spec +} 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" + cd $_gemname-$pkgver + local _gemdir="$(gem env gemdir)" + + gem install \ + --ignore-dependencies \ + --no-user-install \ + -i "$pkgdir/$_gemdir" \ + -n "$pkgdir/usr/bin" \ + $_gemname-$pkgver.gem + + rm -rf "$pkgdir/$_gemdir/cache" + + install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" } + +# vim: set ts=2 sw=2 et: |