mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 21:12:27 +01:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
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"
|