Date: Sunday, February 5, 2023 @ 22:50:15
  Author: felixonmars
Revision: 1392889

archrelease: copy trunk to community-any

Added:
  ruby-protocol-http2/repos/community-any/PKGBUILD
    (from rev 1392888, ruby-protocol-http2/trunk/PKGBUILD)
Deleted:
  ruby-protocol-http2/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  119 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 59 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-05 22:50:02 UTC (rev 1392888)
+++ PKGBUILD    2023-02-05 22:50:15 UTC (rev 1392889)
@@ -1,60 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=ruby-protocol-http2
-pkgver=0.14.2
-pkgrel=2
-pkgdesc='A low level implementation of the HTTP/2 protocol'
-arch=(any)
-url='https://github.com/socketry/protocol-http2'
-license=(MIT)
-depends=(ruby-protocol-hpack ruby-protocol-http)
-checkdepends=(ruby-covered ruby-rspec)
-options=(!emptydirs)
-source=(https://github.com/socketry/protocol-http2/archive/v$pkgver/$pkgname-$pkgver.tar.gz
-        
https://github.com/socketry/protocol-http2/commit/6edb02066976aa79d5c52e25835364324b01e722.patch)
-sha256sums=('2029cea59f863988ab40afee0b16fbd7c545cd86977f458de41d1409bf4949bc'
-            '22e0fc2c5f9525cf680e9fe064578d3a4102b958377f75f14c5b9cc8ea55c901')
-
-prepare() {
-  cd protocol-http2-$pkgver
-  patch -p1 -i ../6edb02066976aa79d5c52e25835364324b01e722.patch
-  sed -r -e 's|~>|>=|g' -e '/signing_key/d' -i protocol-http2.gemspec
-  echo gemspec > gems.rb
-}
-
-build() {
-  local _gemdir="$(gem env gemdir)"
-  cd protocol-http2-$pkgver
-  gem build protocol-http2.gemspec
-  gem install \
-    --local \
-    --verbose \
-    --ignore-dependencies \
-    --no-user-install \
-    --install-dir "tmp_install/$_gemdir" \
-    --bindir "tmp_install/usr/bin" \
-    protocol-http2-$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 protocol-http2-$pkgver
-  GEM_HOME="tmp_install/$_gemdir" rspec
-}
-
-package() {
-  cd protocol-http2-$pkgver
-  cp -a tmp_install/* "$pkgdir"/
-}

Copied: ruby-protocol-http2/repos/community-any/PKGBUILD (from rev 1392888, 
ruby-protocol-http2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-05 22:50:15 UTC (rev 1392889)
@@ -0,0 +1,59 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=ruby-protocol-http2
+pkgver=0.15.0
+_commit=f69b0e79b7b3594cda313396f4882ce861440848
+pkgrel=1
+pkgdesc='A low level implementation of the HTTP/2 protocol'
+arch=(any)
+url='https://github.com/socketry/protocol-http2'
+license=(MIT)
+depends=(ruby-protocol-hpack ruby-protocol-http)
+makedepends=(git)
+checkdepends=(ruby-covered ruby-sus ruby-bake-modernize ruby-bake-test 
ruby-bake-test-external)
+options=(!emptydirs)
+source=(git+https://github.com/socketry/protocol-http2.git#commit=$_commit)
+sha256sums=('SKIP')
+
+prepare() {
+  cd protocol-http2
+  sed -r -e 's|~>|>=|g' -e '/signing_key/d' -i protocol-http2.gemspec
+  sed -i '/bake-gem/d;/bake-github-pages/d;/utopia-project/d' gems.rb
+}
+
+build() {
+  local _gemdir="$(gem env gemdir)"
+  cd protocol-http2
+  gem build protocol-http2.gemspec
+  gem install \
+    --local \
+    --verbose \
+    --ignore-dependencies \
+    --no-user-install \
+    --install-dir "tmp_install/$_gemdir" \
+    --bindir "tmp_install/usr/bin" \
+    protocol-http2-$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 protocol-http2
+  GEM_HOME="tmp_install/$_gemdir" bake test
+}
+
+package() {
+  cd protocol-http2
+  cp -a tmp_install/* "$pkgdir"/
+}

Reply via email to