1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/ruby-rspec-core/APKBUILD
2025-04-26 00:18:52 +02:00

44 lines
1.2 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=ruby-rspec-core
_gemname=${pkgname#ruby-}
pkgver=3.13.3
pkgrel=0
pkgdesc="RSpec runner and formatters"
url="https://relishapp.com/rspec/rspec-core/docs"
arch="noarch"
license="MIT"
depends="ruby ruby-rspec-support~${pkgver%.*}"
options="!check" # rspec's tests are written in rspec
source="$pkgname-$pkgver.tar.gz::https://github.com/rspec/rspec/archive/$_gemname-v$pkgver.tar.gz
gemspec.patch"
builddir="$srcdir/rspec-$_gemname-v$pkgver/$_gemname"
build() {
gem build $_gemname.gemspec
}
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 \
$_gemname
# WTF is that?
rm -f "$pkgdir"/usr/bin/rspec.lock
# Clean-up...
rm -r "$gemdir"/cache \
"$gemdir"/build_info \
"$gemdir"/doc
}
sha512sums="
decceb71366a0baa5b690a1f58224f340b8559bef90f5fdfd0a0066d884db7b32c4cf841959776eeab41b7285d77e6e1cb7ee8b11c436361ac95e133d41f7aa0 ruby-rspec-core-3.13.3.tar.gz
f1fa922515b8253f536a7354b91c3b4204f814bd8e14a4c1876906f310e659bd7c12f5f6a836342c9ada3646c1f7c8240111e0fb7df056e0f9028a170b5041b4 gemspec.patch
"