Date: Monday, July 7, 2014 @ 22:41:06 Author: jlichtblau Revision: 115284
archrelease: copy trunk to community-x86_64 Added: sdcv/repos/community-x86_64/PKGBUILD (from rev 115283, sdcv/trunk/PKGBUILD) sdcv/repos/community-x86_64/sdcv-0.4.2-headers.patch (from rev 115283, sdcv/trunk/sdcv-0.4.2-headers.patch) sdcv/repos/community-x86_64/sdcv.changelog (from rev 115283, sdcv/trunk/sdcv.changelog) Deleted: sdcv/repos/community-x86_64/PKGBUILD sdcv/repos/community-x86_64/sdcv-0.4.2-headers.patch sdcv/repos/community-x86_64/sdcv.changelog --------------------------+ PKGBUILD | 78 +++++++++++++++++++------------------- sdcv-0.4.2-headers.patch | 92 ++++++++++++++++++++++----------------------- sdcv.changelog | 9 ++-- 3 files changed, 91 insertions(+), 88 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2014-07-07 20:40:56 UTC (rev 115283) +++ PKGBUILD 2014-07-07 20:41:06 UTC (rev 115284) @@ -1,39 +0,0 @@ -# $Id$ -# Maintainer: Jaroslav Lichtblau <dragonl...@aur.archlinux.org> - -pkgname=sdcv -pkgver=0.4.2 -pkgrel=7 -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-x86_64/PKGBUILD (from rev 115283, sdcv/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2014-07-07 20:41:06 UTC (rev 115284) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Jaroslav Lichtblau <dragonl...@aur.archlinux.org> + +pkgname=sdcv +pkgver=0.4.2 +pkgrel=8 +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 +} Deleted: sdcv-0.4.2-headers.patch =================================================================== --- sdcv-0.4.2-headers.patch 2014-07-07 20:40:56 UTC (rev 115283) +++ sdcv-0.4.2-headers.patch 2014-07-07 20:41:06 UTC (rev 115284) @@ -1,46 +0,0 @@ -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-x86_64/sdcv-0.4.2-headers.patch (from rev 115283, sdcv/trunk/sdcv-0.4.2-headers.patch) =================================================================== --- sdcv-0.4.2-headers.patch (rev 0) +++ sdcv-0.4.2-headers.patch 2014-07-07 20:41:06 UTC (rev 115284) @@ -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> + Deleted: sdcv.changelog =================================================================== --- sdcv.changelog 2014-07-07 20:40:56 UTC (rev 115283) +++ sdcv.changelog 2014-07-07 20:41:06 UTC (rev 115284) @@ -1,3 +0,0 @@ -2011-10-26 Jaroslav Lichtblau <dragonl...@aur.archlinux.org> - * sdcv 0.4.2-6 - * moved to [community] with 206 votes Copied: sdcv/repos/community-x86_64/sdcv.changelog (from rev 115283, sdcv/trunk/sdcv.changelog) =================================================================== --- sdcv.changelog (rev 0) +++ sdcv.changelog 2014-07-07 20:41:06 UTC (rev 115284) @@ -0,0 +1,6 @@ +2014-07-07 Jaroslav Lichtblau <dragonl...@aur.archlinux.org> + * sdcv 0.4.2-8 mtree rebuild + +2011-10-26 Jaroslav Lichtblau <dragonl...@aur.archlinux.org> + * sdcv 0.4.2-6 + * moved to [community] with 206 votes