[arch-commits] Commit in protobuf/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Mon Apr 19 20:08:30 UTC 2021
Date: Monday, April 19, 2021 @ 20:08:30
Author: arojas
Revision: 412905
archrelease: copy trunk to extra-x86_64
Added:
protobuf/repos/extra-x86_64/PKGBUILD
(from rev 412904, protobuf/trunk/PKGBUILD)
Deleted:
protobuf/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 158 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 79 insertions(+), 79 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-19 20:08:21 UTC (rev 412904)
+++ PKGBUILD 2021-04-19 20:08:30 UTC (rev 412905)
@@ -1,79 +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.15.7
-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=('b95e1e7d3c0807f87dd3d47090db87ab2a5a6cfc02bac7c78f7e50821d796b5a6e71bf7943128d368974c3a0414d259a3761e5cc241a43c53186618666bc831b')
-
-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"
-
- # https://bugzilla.redhat.com/show_bug.cgi?id=1838470
- # https://github.com/protocolbuffers/protobuf/issues/7514
- make check CXXFLAGS+=' -Wno-error=type-limits'
-
- 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 412904, protobuf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-04-19 20:08:30 UTC (rev 412905)
@@ -0,0 +1,79 @@
+# 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.15.8
+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=('80386543f4fe513b79566975611ec0e019c913e0365964cb400e49d22f9276e4e9b989348c4b4fd5b8ee4491d3913f3e47451e0f0b8839f8f5081332ba8bf10a')
+
+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"
+
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1838470
+ # https://github.com/protocolbuffers/protobuf/issues/7514
+ make check CXXFLAGS+=' -Wno-error=type-limits'
+
+ 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