mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 00:21:37 +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.4
|
|
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="b50f01b69b6f253ea40d445301586219ca9032af0f9a4b0ca990eabfb4b81051dd96acc2d75a8ccb5333fa2d4842c0eee28d1c28b335d9a36826c6d70161830b ruby-timecop-0.9.4.tar.gz"
|