Date: Friday, February 3, 2023 @ 00:01:21
  Author: felixonmars
Revision: 1392062

upgpkg: ruby-http 5.1.1-2

Modified:
  ruby-http/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-03 00:00:15 UTC (rev 1392061)
+++ PKGBUILD    2023-02-03 00:01:21 UTC (rev 1392062)
@@ -2,30 +2,27 @@
 
 pkgname=ruby-http
 pkgver=5.1.1
-pkgrel=1
+_commit=1d3ab3771cd9b913964c4875909bd53f81b28acc
+pkgrel=2
 pkgdesc='A fast Ruby HTTP client with a chainable API, streaming support, and 
timeouts'
 arch=(any)
 url='https://github.com/httprb/http'
 license=(MIT)
 depends=(ruby-addressable ruby-http-cookie ruby-http-form_data ruby-llhttp-ffi)
-makedepends=(ruby-rake ruby-rspec)
+makedepends=(git ruby-rake ruby-rspec)
 checkdepends=(ruby-certificate_authority ruby-rspec-its ruby-simplecov 
ruby-webrick)
 options=(!emptydirs)
-source=(https://github.com/httprb/http/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('9b3f2ab786438935ce9ad894db40b58c7b82fd870083f3e244e2dfe53d3075eb')
+source=(git+https://github.com/httprb/http.git#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd http-$pkgver
-  sed -e '/gem.executables/d' \
-      -e 's|git ls-files -- {test,spec,features}/\*|echo|' \
-      -e 's|git ls-files|find -type f|' \
-      -i http.gemspec
+  cd http
   sed -i '/fuubar/d' spec/spec_helper.rb
 }
 
 build() {
   local _gemdir="$(gem env gemdir)"
-  cd http-$pkgver
+  cd http
   gem build http.gemspec
   gem install \
     --local \
@@ -51,12 +48,12 @@
 
 check() {
   local _gemdir="$(gem env gemdir)"
-  cd http-$pkgver
+  cd http
   GEM_HOME="tmp_install/$_gemdir" rspec
 }
 
 package() {
-  cd http-$pkgver
+  cd http
   cp -a tmp_install/* "$pkgdir"/
   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to