mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-27 05:20:32 +01:00
28 lines
874 B
Bash
28 lines
874 B
Bash
# Generated by gem2arch (https://github.com/anatol/gem2arch)
|
|
# Maintainer: farawayer <farwayer@gmail.com>
|
|
|
|
_gemname=terminal-table
|
|
pkgname=ruby-$_gemname
|
|
pkgver=1.7.3
|
|
pkgrel=4
|
|
pkgdesc='Simple, feature rich ascii table generation library'
|
|
arch=(any)
|
|
url='https://github.com/tj/terminal-table'
|
|
license=(MIT)
|
|
depends=(
|
|
ruby
|
|
'ruby-unicode-display_width<2' 'ruby-unicode-display_width>=1.1.1'
|
|
)
|
|
options=(!emptydirs)
|
|
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
|
noextract=($_gemname-$pkgver.gem)
|
|
sha1sums=('f1c4f71bcfc43d5b65016383403205b3bac9291e')
|
|
|
|
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"
|
|
|
|
grep -r -l '~> 1.1.1' $pkgdir | xargs sed -i 's/~> 1.1.1/~> 1.2/g'
|
|
}
|