Date: Sunday, December 6, 2015 @ 02:50:10
  Author: foutrelis
Revision: 148747

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  sdcv/repos/community-staging-i686/
  sdcv/repos/community-staging-i686/PKGBUILD
    (from rev 148746, sdcv/trunk/PKGBUILD)
  sdcv/repos/community-staging-i686/sdcv-0.4.2-headers.patch
    (from rev 148746, sdcv/trunk/sdcv-0.4.2-headers.patch)
  sdcv/repos/community-staging-i686/sdcv.changelog
    (from rev 148746, sdcv/trunk/sdcv.changelog)
  sdcv/repos/community-staging-x86_64/
  sdcv/repos/community-staging-x86_64/PKGBUILD
    (from rev 148746, sdcv/trunk/PKGBUILD)
  sdcv/repos/community-staging-x86_64/sdcv-0.4.2-headers.patch
    (from rev 148746, sdcv/trunk/sdcv-0.4.2-headers.patch)
  sdcv/repos/community-staging-x86_64/sdcv.changelog
    (from rev 148746, sdcv/trunk/sdcv.changelog)

---------------------------------------------------+
 community-staging-i686/PKGBUILD                   |   39 ++++++++++++++++
 community-staging-i686/sdcv-0.4.2-headers.patch   |   46 ++++++++++++++++++++
 community-staging-i686/sdcv.changelog             |    6 ++
 community-staging-x86_64/PKGBUILD                 |   39 ++++++++++++++++
 community-staging-x86_64/sdcv-0.4.2-headers.patch |   46 ++++++++++++++++++++
 community-staging-x86_64/sdcv.changelog           |    6 ++
 6 files changed, 182 insertions(+)

Copied: sdcv/repos/community-staging-i686/PKGBUILD (from rev 148746, 
sdcv/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2015-12-06 01:50:10 UTC (rev 148747)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <[email protected]>
+
+pkgname=sdcv
+pkgver=0.4.2
+pkgrel=9
+pkgdesc="StarDict Console Version"
+arch=('i686' 'x86_64')
+url="http://sdcv.sourceforge.net/";
+license=('GPL')
+depends=('glib2' 'readline' 'zlib')
+makedepends=('patch')
+provides=('stardict')
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
 \
+        $pkgname-$pkgver-headers.patch)
+sha256sums=('a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2'
+            '4746e32a6aaddf7744f373b539879598b48219a3b35f41ceb839f04c27921eb4')
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  patch -Np1 -i "${srcdir}"/$pkgname-$pkgver-headers.patch
+
+  ./configure --prefix=/usr  --mandir=/usr/share/man
+
+#quick fix for x86_64
+  if [ "${CARCH}" == "x86_64" ]; then
+    sed -i 's|guint32 page_size|guint64 page_size|' src/lib/lib.cpp
+  fi
+
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: sdcv/repos/community-staging-i686/sdcv-0.4.2-headers.patch (from rev 
148746, sdcv/trunk/sdcv-0.4.2-headers.patch)
===================================================================
--- community-staging-i686/sdcv-0.4.2-headers.patch                             
(rev 0)
+++ community-staging-i686/sdcv-0.4.2-headers.patch     2015-12-06 01:50:10 UTC 
(rev 148747)
@@ -0,0 +1,46 @@
+diff -ruN sdcv-0.4.2-orig/src/lib/lib.cpp sdcv-0.4.2/src/lib/lib.cpp
+--- sdcv-0.4.2-orig/src/lib/lib.cpp    2006-04-24 10:17:27.000000000 +0200
++++ sdcv-0.4.2/src/lib/lib.cpp 2009-12-19 21:15:37.000000000 +0100
+@@ -513,7 +513,7 @@
+ {
+       fseek(idxfile, wordoffset[page_idx], SEEK_SET);
+       guint32 page_size=wordoffset[page_idx+1]-wordoffset[page_idx];
+-      fread(wordentry_buf, std::min(sizeof(wordentry_buf), page_size), 1, 
idxfile); //TODO: check returned values, deal with word entry that strlen>255.
++      fread(wordentry_buf, std::min(sizeof(wordentry_buf), 
(size_t)page_size), 1, idxfile); //TODO: check returned values, deal with word 
entry that strlen>255.
+       return wordentry_buf;
+ }
+
+diff -ruN sdcv-0.4.2-orig/src/libwrapper.cpp sdcv-0.4.2/src/libwrapper.cpp
+--- sdcv-0.4.2-orig/src/libwrapper.cpp 2006-04-24 12:40:29.000000000 +0200
++++ sdcv-0.4.2/src/libwrapper.cpp      2009-12-19 21:15:37.000000000 +0100
+@@ -24,6 +24,7 @@
+ 
+ #include <glib/gi18n.h>
+ #include <map>
++#include <cstring>
+ 
+ #include "utils.hpp"
+ 
+diff -ruN sdcv-0.4.2-orig/src/readline.cpp sdcv-0.4.2/src/readline.cpp
+--- sdcv-0.4.2-orig/src/readline.cpp   2005-12-07 23:07:23.000000000 +0100
++++ sdcv-0.4.2/src/readline.cpp        2009-12-19 21:15:37.000000000 +0100
+@@ -23,6 +23,7 @@
+ #endif
+ 
+ #include <cstdio>
++#include <cstdlib>
+ #ifdef WITH_READLINE
+ #  include <readline/readline.h>
+ #  include <readline/history.h>
+diff -ruN sdcv-0.4.2-orig/src/utils.cpp sdcv-0.4.2/src/utils.cpp
+--- sdcv-0.4.2-orig/src/utils.cpp      2006-04-24 11:03:47.000000000 +0200
++++ sdcv-0.4.2/src/utils.cpp   2009-12-19 21:15:37.000000000 +0100
+@@ -22,6 +22,8 @@
+ #  include "config.h"
+ #endif
+ 
++#include <cstdio>
++#include <cstdlib>
+ #include <glib.h>
+ #include <glib/gi18n.h>
+ 

Copied: sdcv/repos/community-staging-i686/sdcv.changelog (from rev 148746, 
sdcv/trunk/sdcv.changelog)
===================================================================
--- community-staging-i686/sdcv.changelog                               (rev 0)
+++ community-staging-i686/sdcv.changelog       2015-12-06 01:50:10 UTC (rev 
148747)
@@ -0,0 +1,6 @@
+2014-07-07 Jaroslav Lichtblau <[email protected]>
+       * sdcv 0.4.2-8 mtree rebuild
+
+2011-10-26 Jaroslav Lichtblau <[email protected]>
+       * sdcv 0.4.2-6
+       * moved to [community] with 206 votes

Copied: sdcv/repos/community-staging-x86_64/PKGBUILD (from rev 148746, 
sdcv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2015-12-06 01:50:10 UTC (rev 148747)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <[email protected]>
+
+pkgname=sdcv
+pkgver=0.4.2
+pkgrel=9
+pkgdesc="StarDict Console Version"
+arch=('i686' 'x86_64')
+url="http://sdcv.sourceforge.net/";
+license=('GPL')
+depends=('glib2' 'readline' 'zlib')
+makedepends=('patch')
+provides=('stardict')
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
 \
+        $pkgname-$pkgver-headers.patch)
+sha256sums=('a164f079e93986814ea2d39f3a49cf9d1b71b01aad908254457fe3d0ded9deb2'
+            '4746e32a6aaddf7744f373b539879598b48219a3b35f41ceb839f04c27921eb4')
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  patch -Np1 -i "${srcdir}"/$pkgname-$pkgver-headers.patch
+
+  ./configure --prefix=/usr  --mandir=/usr/share/man
+
+#quick fix for x86_64
+  if [ "${CARCH}" == "x86_64" ]; then
+    sed -i 's|guint32 page_size|guint64 page_size|' src/lib/lib.cpp
+  fi
+
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: sdcv/repos/community-staging-x86_64/sdcv-0.4.2-headers.patch (from rev 
148746, sdcv/trunk/sdcv-0.4.2-headers.patch)
===================================================================
--- community-staging-x86_64/sdcv-0.4.2-headers.patch                           
(rev 0)
+++ community-staging-x86_64/sdcv-0.4.2-headers.patch   2015-12-06 01:50:10 UTC 
(rev 148747)
@@ -0,0 +1,46 @@
+diff -ruN sdcv-0.4.2-orig/src/lib/lib.cpp sdcv-0.4.2/src/lib/lib.cpp
+--- sdcv-0.4.2-orig/src/lib/lib.cpp    2006-04-24 10:17:27.000000000 +0200
++++ sdcv-0.4.2/src/lib/lib.cpp 2009-12-19 21:15:37.000000000 +0100
+@@ -513,7 +513,7 @@
+ {
+       fseek(idxfile, wordoffset[page_idx], SEEK_SET);
+       guint32 page_size=wordoffset[page_idx+1]-wordoffset[page_idx];
+-      fread(wordentry_buf, std::min(sizeof(wordentry_buf), page_size), 1, 
idxfile); //TODO: check returned values, deal with word entry that strlen>255.
++      fread(wordentry_buf, std::min(sizeof(wordentry_buf), 
(size_t)page_size), 1, idxfile); //TODO: check returned values, deal with word 
entry that strlen>255.
+       return wordentry_buf;
+ }
+
+diff -ruN sdcv-0.4.2-orig/src/libwrapper.cpp sdcv-0.4.2/src/libwrapper.cpp
+--- sdcv-0.4.2-orig/src/libwrapper.cpp 2006-04-24 12:40:29.000000000 +0200
++++ sdcv-0.4.2/src/libwrapper.cpp      2009-12-19 21:15:37.000000000 +0100
+@@ -24,6 +24,7 @@
+ 
+ #include <glib/gi18n.h>
+ #include <map>
++#include <cstring>
+ 
+ #include "utils.hpp"
+ 
+diff -ruN sdcv-0.4.2-orig/src/readline.cpp sdcv-0.4.2/src/readline.cpp
+--- sdcv-0.4.2-orig/src/readline.cpp   2005-12-07 23:07:23.000000000 +0100
++++ sdcv-0.4.2/src/readline.cpp        2009-12-19 21:15:37.000000000 +0100
+@@ -23,6 +23,7 @@
+ #endif
+ 
+ #include <cstdio>
++#include <cstdlib>
+ #ifdef WITH_READLINE
+ #  include <readline/readline.h>
+ #  include <readline/history.h>
+diff -ruN sdcv-0.4.2-orig/src/utils.cpp sdcv-0.4.2/src/utils.cpp
+--- sdcv-0.4.2-orig/src/utils.cpp      2006-04-24 11:03:47.000000000 +0200
++++ sdcv-0.4.2/src/utils.cpp   2009-12-19 21:15:37.000000000 +0100
+@@ -22,6 +22,8 @@
+ #  include "config.h"
+ #endif
+ 
++#include <cstdio>
++#include <cstdlib>
+ #include <glib.h>
+ #include <glib/gi18n.h>
+ 

Copied: sdcv/repos/community-staging-x86_64/sdcv.changelog (from rev 148746, 
sdcv/trunk/sdcv.changelog)
===================================================================
--- community-staging-x86_64/sdcv.changelog                             (rev 0)
+++ community-staging-x86_64/sdcv.changelog     2015-12-06 01:50:10 UTC (rev 
148747)
@@ -0,0 +1,6 @@
+2014-07-07 Jaroslav Lichtblau <[email protected]>
+       * sdcv 0.4.2-8 mtree rebuild
+
+2011-10-26 Jaroslav Lichtblau <[email protected]>
+       * sdcv 0.4.2-6
+       * moved to [community] with 206 votes

Reply via email to