summaryrefslogtreecommitdiff
path: root/community/synce-rra
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/synce-rra
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/synce-rra')
-rw-r--r--community/synce-rra/PKGBUILD26
-rw-r--r--community/synce-rra/build-fix.diff51
2 files changed, 77 insertions, 0 deletions
diff --git a/community/synce-rra/PKGBUILD b/community/synce-rra/PKGBUILD
new file mode 100644
index 000000000..dcc1e2f6b
--- /dev/null
+++ b/community/synce-rra/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 27254 2010-09-18 22:01:47Z schuay $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Zhukov Pavel <gelios@gmail.com>
+
+pkgname=synce-rra
+pkgver=0.14
+pkgrel=3
+pkgdesc="provide a means of communication with a Windows CE device - rra libraries for synce"
+arch=('i686' 'x86_64')
+url="http://synce.sourceforge.net/"
+license=('GPL')
+depends=('glibc' 'synce-librapi' 'synce-libmimedir')
+makedepends=('python2' 'pyrex')
+source=(http://downloads.sourceforge.net/synce/librra-$pkgver.tar.gz \
+ build-fix.diff)
+md5sums=('3a608174a3a476c96dd4dd4929448fe8'
+ '8c898d226653cbbb8b778aa0587d66aa')
+
+build() {
+ cd $srcdir/librra-$pkgver
+ ./configure --prefix=/usr
+ sed -i s/-Werror// lib/Makefile src/Makefile
+# patch -p2 python/pyrra.pyx <../build-fix.diff
+ make
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/synce-rra/build-fix.diff b/community/synce-rra/build-fix.diff
new file mode 100644
index 000000000..848fe2d71
--- /dev/null
+++ b/community/synce-rra/build-fix.diff
@@ -0,0 +1,51 @@
+diff -Nruad -Nruad librra-0.11.1.orig/python/pyrra.pyx librra-0.11.1/python/pyrra.pyx
+--- librra-0.11.1.orig/python/pyrra.pyx 2008-05-23 20:56:17.000000000 +0100
++++ librra-0.11.1/python/pyrra.pyx 2008-05-23 20:56:30.000000000 +0100
+@@ -132,7 +132,7 @@
+ cdef bool _CB_TypesCallback(RRA_SyncMgrTypeEvent event, uint32_t type, uint32_t count, uint32_t * ids, context):
+ ida=[]
+ cdef bool rc
+- for i from 0 <= i < count:
++ for 0 <= i < count:
+ ida.append(ids[i])
+ rc=context.CB_TypeCallback(<RRA_SyncMgrTypeEvent> event,type,ida)
+ return rc
+@@ -192,9 +192,9 @@
+ # Event processing
+ #
+
+- def SubscribeObjectEvents(self,type):
++ def SubscribeObjectEvents(self,type_id):
+ if self.connected != 0:
+- rra_syncmgr_subscribe(self.instance, type, _CB_TypesCallback, self)
++ rra_syncmgr_subscribe(self.instance, type_id, _CB_TypesCallback, self)
+ return 0
+ return -1
+
+@@ -260,7 +260,7 @@
+ c_oids = <uint32_t *>malloc(sizeof(uint32_t)*c_cnt)
+ rc=0
+ if c_oids != NULL:
+- for i from 0 <= i < c_cnt:
++ for 0 <= i < c_cnt:
+ c_oids[i] = oids[i]
+ rc= rra_syncmgr_get_multiple_objects(self.instance,type_id, c_cnt, c_oids,_CB_WriterCallback, self)
+ free(c_oids)
+@@ -291,7 +291,7 @@
+ rc = rra_syncmgr_put_multiple_objects(self.instance,type_id,c_oidcount,
+ c_oids,c_newoids,flags,_CB_ReaderCallback,self)
+ if rc == True:
+- for i from 0 <= i < c_oidcount:
++ for 0 <= i < c_oidcount:
+ newoid_array.append(c_newoids[i])
+ free(c_oids)
+ return rc
+@@ -312,7 +312,7 @@
+ # (to be overloaded by user)
+ #
+
+- def CB_TypeCallback(self, event, type, idarray):
++ def CB_TypeCallback(self, event, type_id, idarray):
+ return False
+
+ def CB_ObjectWriterCallback(self,type_id, obj_id, data):