Date: Friday, February 3, 2023 @ 00:46:36 Author: felixonmars Revision: 1392100
upgpkg: ruby-rubygems-tasks 0.2.5-2 Modified: ruby-rubygems-tasks/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-03 00:45:28 UTC (rev 1392099) +++ PKGBUILD 2023-02-03 00:46:36 UTC (rev 1392100) @@ -2,28 +2,30 @@ pkgname=ruby-rubygems-tasks pkgver=0.2.5 -pkgrel=1 +_commit=f5def3317720d2004c8ae237190a2efbc425ff0a +pkgrel=2 pkgdesc='Agnostic and unobtrusive Rake tasks for managing and releasing Ruby Gems' arch=(any) url='https://github.com/postmodern/rubygems-tasks' license=(MIT) depends=(ruby-irb ruby-rake) -checkdepends=(git ruby-rspec) +makedepends=(git) +checkdepends=(ruby-rspec) options=(!emptydirs) -source=(https://github.com/postmodern/rubygems-tasks/archive/v$pkgver/$pkgname-$pkgver.tar.gz) -sha256sums=('ee4e0afffee6e49eb7efccc707dee5cf3553213126f7bdcfd992c892343bdca6') +source=(git+https://github.com/postmodern/rubygems-tasks.git#commit=$_commit) +sha256sums=('SKIP') prepare() { - cd rubygems-tasks-$pkgver - sed 's|git ls-files|find -type f|' -i rubygems-tasks.gemspec \ - spec/projects/rubygems-multi-project/*.gemspec \ - spec/projects/rubygems-project/*.gemspec + cd rubygems-tasks sed -r 's|~> (.*)|">= \1"|g' -i gemspec.yml + git config user.email "pony@arch" + git config user.name "Lucky Pony" + git commit gemspec.yml -m "Relax version constraints" } build() { local _gemdir="$(gem env gemdir)" - cd rubygems-tasks-$pkgver + cd rubygems-tasks rake build gem install \ --local \ @@ -49,13 +51,12 @@ check() { local _gemdir="$(gem env gemdir)" - cd rubygems-tasks-$pkgver - git init + cd rubygems-tasks GEM_HOME="tmp_install/$_gemdir" rake spec } package() { - cd rubygems-tasks-$pkgver + cd rubygems-tasks cp -a tmp_install/* "$pkgdir"/ install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }
