Date: Friday, February 3, 2023 @ 00:52:43 Author: felixonmars Revision: 1392109
upgpkg: ruby-shoulda-context 2.0.0-4 Modified: ruby-shoulda-context/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-03 00:51:04 UTC (rev 1392108) +++ PKGBUILD 2023-02-03 00:52:43 UTC (rev 1392109) @@ -2,34 +2,33 @@ pkgname=ruby-shoulda-context pkgver=2.0.0 -pkgrel=3 +_commit=eff9fdde51db7681128336c682311b36867fb288 +pkgrel=4 pkgdesc='Minitest & Test::Unit context framework' arch=(any) url='https://github.com/thoughtbot/shoulda-context' license=(MIT) depends=(ruby) +makedepends=(git) checkdepends=(ruby-byebug ruby-m ruby-minitest ruby-mocha ruby-pry ruby-pry-byebug ruby-rake - ruby-snowglobe ruby-test-unit ruby-warnings_logger) + ruby-snowglobe ruby-test-unit ruby-warnings_logger ruby-rubocop) options=(!emptydirs) -source=(https://github.com/thoughtbot/shoulda-context/archive/v$pkgver/$pkgname-$pkgver.tar.gz) -sha256sums=('f83093bbc37b58a2d7e7dfad8ff7c426f4e8ba3ea6d17977750e18ff4e696df4') +source=(git+https://github.com/thoughtbot/shoulda-context.git#commit=$_commit) +sha256sums=('SKIP') prepare() { - cd shoulda-context-$pkgver - sed 's|git ls-files -- exe/\*|find exe -type f|' -i shoulda-context.gemspec - sed 's|git ls-files -- {test,spec,features}/\*|echo|' -i shoulda-context.gemspec - sed 's|git ls-files|find -type f|' -i shoulda-context.gemspec - sed -i -e 's|~>|>=|' -e '/appraisal/d;/rubocop/d' Gemfile + cd shoulda-context + sed -i -e 's|~>|>=|' -e '/appraisal/d' -e 's/, "0.71.0"//' Gemfile # Multiple hacks to avoid appraisal and rails sed -i 's/Tests::CurrentBundle.instance.appraisal_in_use?/true/' Rakefile sed -i '/current_bundle/d;/assert_appraisal/d;/rails_application_with_shoulda_context/d' test/test_helper.rb Rakefile - rm Gemfile.lock - rm test/shoulda/test_framework_detection_test.rb test/shoulda/rerun_snippet_test.rb test/shoulda/railtie_test.rb + git rm Gemfile.lock + git rm test/shoulda/test_framework_detection_test.rb test/shoulda/rerun_snippet_test.rb test/shoulda/railtie_test.rb } build() { local _gemdir="$(gem env gemdir)" - cd shoulda-context-$pkgver + cd shoulda-context gem build shoulda-context.gemspec gem install \ --local \ @@ -55,12 +54,12 @@ check() { local _gemdir="$(gem env gemdir)" - cd shoulda-context-$pkgver + cd shoulda-context GEM_HOME="tmp_install/$_gemdir" rake } package() { - cd shoulda-context-$pkgver + cd shoulda-context cp -a tmp_install/* "$pkgdir"/ install -Dm644 MIT-LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ }
