Date: Friday, February 3, 2023 @ 00:01:32
  Author: felixonmars
Revision: 1392063

archrelease: copy trunk to community-any

Added:
  ruby-http/repos/community-any/PKGBUILD
    (from rev 1392062, ruby-http/trunk/PKGBUILD)
Deleted:
  ruby-http/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  121 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 59 insertions(+), 62 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-03 00:01:21 UTC (rev 1392062)
+++ PKGBUILD    2023-02-03 00:01:32 UTC (rev 1392063)
@@ -1,62 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=ruby-http
-pkgver=5.1.1
-pkgrel=1
-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)
-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')
-
-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
-  sed -i '/fuubar/d' spec/spec_helper.rb
-}
-
-build() {
-  local _gemdir="$(gem env gemdir)"
-  cd http-$pkgver
-  gem build http.gemspec
-  gem install \
-    --local \
-    --verbose \
-    --ignore-dependencies \
-    --no-user-install \
-    --install-dir "tmp_install/$_gemdir" \
-    --bindir "tmp_install/usr/bin" \
-    http-$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 http-$pkgver
-  GEM_HOME="tmp_install/$_gemdir" rspec
-}
-
-package() {
-  cd http-$pkgver
-  cp -a tmp_install/* "$pkgdir"/
-  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: ruby-http/repos/community-any/PKGBUILD (from rev 1392062, 
ruby-http/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-03 00:01:32 UTC (rev 1392063)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ruby-http
+pkgver=5.1.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=(git ruby-rake ruby-rspec)
+checkdepends=(ruby-certificate_authority ruby-rspec-its ruby-simplecov 
ruby-webrick)
+options=(!emptydirs)
+source=(git+https://github.com/httprb/http.git#commit=$_commit)
+sha256sums=('SKIP')
+
+prepare() {
+  cd http
+  sed -i '/fuubar/d' spec/spec_helper.rb
+}
+
+build() {
+  local _gemdir="$(gem env gemdir)"
+  cd http
+  gem build http.gemspec
+  gem install \
+    --local \
+    --verbose \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "tmp_install/$_gemdir" \
+    --bindir "tmp_install/usr/bin" \
+    http-$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 http
+  GEM_HOME="tmp_install/$_gemdir" rspec
+}
+
+package() {
+  cd http
+  cp -a tmp_install/* "$pkgdir"/
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to