# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=ruby-thor pkgver=1.2.1 pkgrel=1 pkgdesc="toolkit for building powerfull command-line interfaces" url="http://whatisthor.com/" arch="noarch" license="MIT" depends="ruby" checkdepends="ruby-rspec" options="!check" # requires simplecov / coverall source="$pkgname-$pkgver.tar.gz::https://github.com/rails/thor/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/thor-$pkgver" build() { gem build thor.gemspec } check() { rspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$gemdir" \ --bindir "$pkgdir/usr/bin" \ --ignore-dependencies \ --no-document \ --verbose \ thor rm -r "$gemdir"/cache \ "$gemdir"/extensions \ "$gemdir"/doc } sha512sums=" 88e58b6ca6c812cb84ab59e0ee8afcd8fa70b6c24d403cd5ea05d1d40ac30e85f2c7412611cc176eb541d16878e309d25c7e4284f64c760475925ffe359250b9 ruby-thor-1.2.1.tar.gz "