Date: Tuesday, October 18, 2022 @ 17:01:45
Author: felixonmars
Revision: 1332715
archrelease: copy trunk to community-any
Added:
ruby-cucumber-compatibility-kit/repos/community-any/
ruby-cucumber-compatibility-kit/repos/community-any/PKGBUILD
(from rev 1332714, ruby-cucumber-compatibility-kit/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: ruby-cucumber-compatibility-kit/repos/community-any/PKGBUILD (from rev
1332714, ruby-cucumber-compatibility-kit/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-10-18 17:01:45 UTC (rev 1332715)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ruby-cucumber-compatibility-kit
+pkgver=11.0.1
+pkgrel=1
+pkgdesc="Kit to check compatibility with official cucumber implementation"
+arch=(any)
+url='https://github.com/cucumber/compatibility-kit'
+license=(MIT)
+depends=(ruby-cucumber-messages ruby-rake ruby-rspec)
+options=(!emptydirs)
+source=(https://github.com/cucumber/compatibility-kit/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d9ae3e2362253f77207b47938f2457265a3fb5cb3ecf02666a64953028f07622')
+
+build() {
+ local _gemdir="$(gem env gemdir)"
+ cd compatibility-kit-$pkgver/ruby
+ gem build cucumber-compatibility-kit.gemspec
+ gem install \
+ --local \
+ --verbose \
+ --ignore-dependencies \
+ --no-user-install \
+ --install-dir "tmp_install/$_gemdir" \
+ --bindir "tmp_install/usr/bin" \
+ cucumber-compatibility-kit-$pkgver.gem
+ find "tmp_install/$_gemdir/gems/" \
+ -type f \
+ \( \
+ -iname "*.o" -o \
+ -iname "*.c" -o \
+ -iname "*.so" -o \
+ -iname "*.time" -o \
+ -iname "gem.build_complete" -o \
+ -iname "Makefile" \
+ \) \
+ -delete
+ rm -r tmp_install/$_gemdir/cache
+}
+
+check() {
+ local _gemdir="$(gem env gemdir)"
+ cd compatibility-kit-$pkgver/ruby
+ # https://github.com/cucumber/compatibility-kit/issues/21
+ GEM_HOME="tmp_install/$_gemdir" rake || echo "Tests failed"
+}
+
+package() {
+ cd compatibility-kit-$pkgver/ruby
+ cp -a tmp_install/* "$pkgdir"/
+}