[arch-commits] Commit in protobuf/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Tue May 10 10:51:32 UTC 2022


    Date: Tuesday, May 10, 2022 @ 10:51:32
  Author: arojas
Revision: 444932

archrelease: copy trunk to extra-x86_64

Added:
  protobuf/repos/extra-x86_64/PKGBUILD
    (from rev 444931, protobuf/trunk/PKGBUILD)
Deleted:
  protobuf/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |  156 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 80 insertions(+), 76 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-10 10:51:21 UTC (rev 444931)
+++ PKGBUILD	2022-05-10 10:51:32 UTC (rev 444932)
@@ -1,76 +0,0 @@
-# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-# Contributor: David Runge <dvzrv at archlinux.org>
-# Contributor: Aleksey Filippov <sarum9in at gmail.com>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Thomas S Hatch <thatch45 at gmail.com>
-# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
-# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
-
-pkgbase='protobuf'
-pkgname=('protobuf' 'python-protobuf')
-pkgver=3.20.1
-pkgrel=1
-pkgdesc="Protocol Buffers - Google's data interchange format"
-arch=('x86_64')
-url='https://developers.google.com/protocol-buffers/'
-license=('BSD')
-depends=('gcc-libs' 'glibc' 'zlib')
-makedepends=('unzip' 'python-setuptools')
-source=("https://github.com/protocolbuffers/$pkgname/releases/download/v$pkgver/$pkgname-all-$pkgver.tar.gz")
-sha512sums=('8b32f944be76a4713084a9b18664d17bb6947fafa10412ebaf98f1cebb0e7650e0d9389d9bbb1d53df6c6e96c44467ec2e52cf1740b4e091ddb5f2c0ae9aa742')
-
-prepare() {
-  cd "$pkgbase-$pkgver"
-  autoreconf -vfi
-
-# Don't fail tests on deprecation warnings
-  sed -e "/DeprecationWarning/d" -i python/google/protobuf/internal/*test.py
-}
-
-build() {
-  cd "$pkgbase-$pkgver"
-  ./configure --prefix=/usr
-  make
-  cd python
-  python setup.py build --cpp_implementation
-}
-
-check() {
-  cd "$pkgbase-$pkgver"
-  make check
-
-  cd python
-  python setup.py test
-}
-
-package_protobuf() {
-  replaces=('protobuf-cpp')
-  provides=('libprotoc.so' 'libprotobuf.so' 'libprotobuf-lite.so')
-
-  cd "$pkgbase-$pkgver"
-  make DESTDIR="$pkgdir" install
-
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-  install -vDm 644 editors/protobuf-mode.el \
-    -t "$pkgdir/usr/share/emacs/site-lisp/"
-  install -vDm 644 editors/proto.vim \
-    -t "${pkgdir}/usr/share/vim/vimfiles/syntax"
-}
-
-package_python-protobuf() {
-  pkgdesc='Python 3 bindings for Google Protocol Buffers'
-  depends=('python' 'python-six' "protobuf=$pkgver")
-
-  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  cd "$pkgbase-$pkgver"
-  (
-    cd python
-    PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}:PYTHONPATH" \
-    python setup.py install --skip-build \
-                            --cpp_implementation \
-                            --optimize=1 \
-                            --root="$pkgdir"
-  )
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: protobuf/repos/extra-x86_64/PKGBUILD (from rev 444931, protobuf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-10 10:51:32 UTC (rev 444932)
@@ -0,0 +1,80 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: David Runge <dvzrv at archlinux.org>
+# Contributor: Aleksey Filippov <sarum9in at gmail.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Geoffroy Carrier <geoffroy at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase='protobuf'
+pkgname=('protobuf' 'python-protobuf')
+pkgver=3.20.1
+pkgrel=2
+pkgdesc="Protocol Buffers - Google's data interchange format"
+arch=('x86_64')
+url='https://developers.google.com/protocol-buffers/'
+license=('BSD')
+depends=('gcc-libs' 'glibc' 'zlib')
+makedepends=('unzip' 'python-setuptools')
+source=("https://github.com/protocolbuffers/$pkgname/releases/download/v$pkgver/$pkgname-all-$pkgver.tar.gz"
+         https://github.com/protocolbuffers/protobuf/commit/b180b280.patch)
+sha512sums=('8b32f944be76a4713084a9b18664d17bb6947fafa10412ebaf98f1cebb0e7650e0d9389d9bbb1d53df6c6e96c44467ec2e52cf1740b4e091ddb5f2c0ae9aa742'
+            '4b64418216b2e776a5471df887278b798385788c4de92e5c176f8b3505e5b522251fc45ae57b3f139ab4bf51b0d320c5bd4a655dd98c1b1da4b3347d0e3ba7f5')
+
+prepare() {
+  cd "$pkgbase-$pkgver"
+  autoreconf -vfi
+
+# Don't fail tests on deprecation warnings
+  sed -e "/DeprecationWarning/d" -i python/google/protobuf/internal/*test.py
+
+  patch -p1 -i ../b180b280.patch # Fix broken generated code with GCC 12.1
+}
+
+build() {
+  cd "$pkgbase-$pkgver"
+  ./configure --prefix=/usr
+  make
+  cd python
+  python setup.py build --cpp_implementation
+}
+
+check() {
+  cd "$pkgbase-$pkgver"
+  make check
+
+  cd python
+  python setup.py test
+}
+
+package_protobuf() {
+  replaces=('protobuf-cpp')
+  provides=('libprotoc.so' 'libprotobuf.so' 'libprotobuf-lite.so')
+
+  cd "$pkgbase-$pkgver"
+  make DESTDIR="$pkgdir" install
+
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+  install -vDm 644 editors/protobuf-mode.el \
+    -t "$pkgdir/usr/share/emacs/site-lisp/"
+  install -vDm 644 editors/proto.vim \
+    -t "${pkgdir}/usr/share/vim/vimfiles/syntax"
+}
+
+package_python-protobuf() {
+  pkgdesc='Python 3 bindings for Google Protocol Buffers'
+  depends=('python' 'python-six' "protobuf=$pkgver")
+
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  cd "$pkgbase-$pkgver"
+  (
+    cd python
+    PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}:PYTHONPATH" \
+    python setup.py install --skip-build \
+                            --cpp_implementation \
+                            --optimize=1 \
+                            --root="$pkgdir"
+  )
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list