[arch-commits] Commit in libgadu/repos (6 files)
Andrea Scarpino
andrea at archlinux.org
Wed Aug 6 21:47:48 UTC 2014
Date: Wednesday, August 6, 2014 @ 23:47:48
Author: andrea
Revision: 219360
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
libgadu/repos/staging-i686/
libgadu/repos/staging-i686/PKGBUILD
(from rev 219359, libgadu/trunk/PKGBUILD)
libgadu/repos/staging-i686/protobuf-c.patch
(from rev 219359, libgadu/trunk/protobuf-c.patch)
libgadu/repos/staging-x86_64/
libgadu/repos/staging-x86_64/PKGBUILD
(from rev 219359, libgadu/trunk/PKGBUILD)
libgadu/repos/staging-x86_64/protobuf-c.patch
(from rev 219359, libgadu/trunk/protobuf-c.patch)
---------------------------------+
staging-i686/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
staging-i686/protobuf-c.patch | 17 +++++++++++++++++
staging-x86_64/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
staging-x86_64/protobuf-c.patch | 17 +++++++++++++++++
4 files changed, 106 insertions(+)
Copied: libgadu/repos/staging-i686/PKGBUILD (from rev 219359, libgadu/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2014-08-06 21:47:48 UTC (rev 219360)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+
+pkgname=libgadu
+pkgver=1.12.0
+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"
+ '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
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
Copied: libgadu/repos/staging-i686/protobuf-c.patch (from rev 219359, libgadu/trunk/protobuf-c.patch)
===================================================================
--- staging-i686/protobuf-c.patch (rev 0)
+++ staging-i686/protobuf-c.patch 2014-08-06 21:47:48 UTC (rev 219360)
@@ -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
+
Copied: libgadu/repos/staging-x86_64/PKGBUILD (from rev 219359, libgadu/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2014-08-06 21:47:48 UTC (rev 219360)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+
+pkgname=libgadu
+pkgver=1.12.0
+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"
+ '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
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
Copied: libgadu/repos/staging-x86_64/protobuf-c.patch (from rev 219359, libgadu/trunk/protobuf-c.patch)
===================================================================
--- staging-x86_64/protobuf-c.patch (rev 0)
+++ staging-x86_64/protobuf-c.patch 2014-08-06 21:47:48 UTC (rev 219360)
@@ -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