[arch-commits] Commit in libgadu/trunk (PKGBUILD protobuf-c.patch)

Andrea Scarpino andrea at archlinux.org
Wed Aug 6 21:47:41 UTC 2014


    Date: Wednesday, August 6, 2014 @ 23:47:41
  Author: andrea
Revision: 219359

upgpkg: libgadu 1.12.0-2

protobuf-c rebuild

Added:
  libgadu/trunk/protobuf-c.patch
Modified:
  libgadu/trunk/PKGBUILD

------------------+
 PKGBUILD         |   14 +++++++++++---
 protobuf-c.patch |   17 +++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-06 20:56:56 UTC (rev 219358)
+++ PKGBUILD	2014-08-06 21:47:41 UTC (rev 219359)
@@ -5,17 +5,25 @@
 
 pkgname=libgadu
 pkgver=1.12.0
-pkgrel=1
+pkgrel=2
 pkgdesc="This library implements the client side of the Gadu-Gadu protocol"
 arch=('i686' 'x86_64')
 url="http://libgadu.net/"
 license=('LGPL2.1')
 depends=('gnutls' 'protobuf-c')
-source=("http://github.com/wojtekka/libgadu/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('e4569a0ed26136c4634fa8c4013910e3')
+source=("http://github.com/wojtekka/libgadu/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+        'protobuf-c.patch')
+md5sums=('e4569a0ed26136c4634fa8c4013910e3'
+         '0139f15f89db5a3684994ae5ba4115d9')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p1 -i "${srcdir}"/protobuf-c.patch
+}
+
 build() {
   cd ${pkgname}-${pkgver}
+  ./protobufgen.sh
   ./configure --prefix=/usr \
     --disable-tests \
     --disable-static

Added: protobuf-c.patch
===================================================================
--- protobuf-c.patch	                        (rev 0)
+++ protobuf-c.patch	2014-08-06 21:47:41 UTC (rev 219359)
@@ -0,0 +1,17 @@
+diff -Npru libgadu-1.12.0.orig/protobufgen.sh libgadu-1.12.0/protobufgen.sh
+--- libgadu-1.12.0.orig/protobufgen.sh	2014-06-13 18:41:37.000000000 +0000
++++ libgadu-1.12.0/protobufgen.sh	2014-07-16 20:06:14.570039033 +0000
+@@ -6,12 +6,5 @@ if [ $? != 0 ] ; then
+ 	exit -1
+ fi
+ 
+-sed -i 's/<google\/protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h
+-
+-if ! cat packets.pb-c.c | grep "PROTOBUF_C_NO_DEPRECATED" > /dev/null; then
+-	echo "Warning: protobuf-c-compiler < 0.14 detected, trying to fix the output"
+-	sed -i 's|    NULL,NULL    /\* reserved1, reserved2 \*/|    0, 0, NULL, NULL|g' packets.pb-c.c
+-fi
+-
+ mv packets.pb-c.h include
+ mv packets.pb-c.c src
+




More information about the arch-commits mailing list