mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=ruby-rspec-support
|
|
_gemname=${pkgname#ruby-}
|
|
pkgver=3.12.0
|
|
pkgrel=1
|
|
pkgdesc="Support utilities for RSpec gems"
|
|
url="https://github.com/rspec/$_gemname"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="ruby"
|
|
options="!check" # rspec's tests are written in rspec
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/$_gemname/archive/v$pkgver.tar.gz
|
|
gemspec.patch"
|
|
builddir="$srcdir/$_gemname-$pkgver"
|
|
|
|
build() {
|
|
gem build $_gemname.gemspec
|
|
}
|
|
|
|
package() {
|
|
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
|
|
|
|
gem install --local \
|
|
--install-dir "$gemdir" \
|
|
--ignore-dependencies \
|
|
--no-document \
|
|
--verbose \
|
|
$_gemname
|
|
|
|
# Clean-up...
|
|
rm -r "$gemdir"/cache \
|
|
"$gemdir"/build_info \
|
|
"$gemdir"/doc
|
|
}
|
|
|
|
sha512sums="
|
|
c1296d1589bc5536b5890e1589876d0b13f122bd1b555f3e3ae62ef29fe46c989013d9435486ffe553f657d928e99434b11339c53e5248f1817a99959e344430 ruby-rspec-support-3.12.0.tar.gz
|
|
e9d611ea1789e835f742aa92f1e668840139e2621898edf158dc53e111db4119a324da65d2d28f5c6e737c82f261f4adb3beb8c244ee01d2f618778ed62d3731 gemspec.patch
|
|
"
|