# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ruby-timecop _gemname=${pkgname#ruby-} pkgver=0.9.2 pkgrel=0 pkgdesc="A gem providing 'time travel' and 'time freezing' capabilities" url="https://github.com/travisjeffery/timecop" arch="noarch" license="MIT" depends="ruby" options="!check" # tests require dependencies we don't have yet source="$pkgname-$pkgver.tar.gz::https://github.com/travisjeffery/$_gemname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_gemname-$pkgver" build() { cd "$builddir" gem build $_gemname.gemspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" cd "$builddir" gem install --local \ --install-dir "$gemdir" \ --ignore-dependencies \ --no-document \ --verbose \ $_gemname # Remove unnecessary files. cd "$gemdir" rm -r cache/ build_info/ doc/ cd gems/$_gemname-$pkgver rm -r test/ Rakefile README* LICENSE } sha512sums="bcb4655b9b95183c5b29492b6b57ba43048e869aa406112016eaf65e200e11cf1061bc10ca0a44c08cc4f96a9ea832772ca7d7a54a2f5ebfc013af5b34bfabee ruby-timecop-0.9.2.tar.gz"