Date: Thursday, February 2, 2023 @ 20:37:16
  Author: felixonmars
Revision: 1392012

upgpkg: ruby-bump 0.10.0-2

Modified:
  ruby-bump/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-02 20:37:00 UTC (rev 1392011)
+++ PKGBUILD    2023-02-02 20:37:16 UTC (rev 1392012)
@@ -1,24 +1,22 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=ruby-bump
-# https://github.com/gregorym/bump/issues/97
+pkgver=0.10.0
 _commit=73c206174ca02549d120402b9a007db0d0bc9699
-pkgver=0.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Bump your gem version file'
 arch=(any)
 url='https://github.com/gregorym/bump'
 license=(MIT)
 depends=(ruby)
-makedepends=(ruby-rake ruby-rspec)
-checkdepends=(git ruby-byebug)
+makedepends=(git)
+checkdepends=(ruby-byebug ruby-rake ruby-rspec ruby-rubocop)
 options=(!emptydirs)
-source=(https://github.com/gregorym/bump/archive/$_commit/$pkgname-$_commit.tar.gz)
-sha256sums=('5c9cadc741b565a01fb860261f4ff0c5128147245505e0b55d5360335ca26fa4')
+source=(git+https://github.com/gregorym/bump.git#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd bump-$_commit
-  sed -e '/[rR]ubo[cC]op/d' -e 's|git ls-files lib README.md|find lib 
README.md -type f|' -i bump.gemspec Rakefile
+  cd bump
   git config --global user.email "pony@arch"
   git config --global user.name "Lucky Pony"
 }
@@ -25,7 +23,7 @@
 
 build() {
   local _gemdir="$(gem env gemdir)"
-  cd bump-$_commit
+  cd bump
   gem build bump.gemspec
   gem install \
     --local \
@@ -51,12 +49,12 @@
 
 check() {
   local _gemdir="$(gem env gemdir)"
-  cd bump-$_commit
+  cd bump
   GEM_HOME="../tmp_install/$_gemdir" rake spec
 }
 
 package() {
-  cd bump-$_commit
+  cd bump
   cp -a ../tmp_install/* "$pkgdir"/
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to