Username: Password: Remember me
Search Criteria Advanced
Package Details

stardict-tools 3.0.1-4
http://stardict.sourceforge.net
Set of tools for managing Stardict dictionaries.

unsupported :: office
Maintainer: Dragonlord
Votes: 39

License: GPL

Last Updated: Sat, 29 Nov 2008 15:45:32 +0000
First Submitted: Wed, 18 Apr 2007 13:33:09 +0000

Tarball :: Files :: PKGBUILD

Dependencies gtk2 mysql

Sources
http://downloads.sourceforge.net/stardict/stardict-tools-3.0.1.tar.bz2
stardict-tools-gcc43.diff
Comment by: vladi_vostok on Sun, 20 Sep 2009 20:16:03 +0000
During compile I got following error:

KangXi.cpp: In function ‘void parse_line(const char*)’:
KangXi.cpp:61: error: invalid conversion from ‘const char*’ to ‘char*’
make[3]: *** [KangXi.o] Error 1
Comment by: ant on Wed, 03 Jun 2009 20:17:29 +0000
Another simple patch is required, otherwise compiling fails:

--- src/bgl2txt.cpp~ 2009-06-02 14:35:15.241370976 +0200
+++ src/bgl2txt.cpp 2009-06-02 14:45:21.222271116 +0200
@@ -1,5 +1,6 @@
#include "libbgl2txt.h"
#include <cstring>
+#include <stdio.h>

int main(int argc, char * argv[])
{

Comment by: skottish on Sun, 23 Nov 2008 01:19:51 +0000
This builds and runs on x86_64. Also, mysql is a dependency.
Comment by: Dragonlord on Thu, 08 May 2008 08:03:58 +0000
Thanks for the error report. It should be ok now! Just a small gcc issue.
Comment by: marco.it on Wed, 07 May 2008 23:25:51 +0000
don't compile; error was:
libbgl2txt.cpp: In function ‘void convert_bglfile(std::string, std::string, std::string)’:
libbgl2txt.cpp:9: error: ‘strrchr’ was not declared in this scope
make[3]: *** [libbgl2txt.o] Error 1
Comment by: Dragonlord on Fri, 07 Mar 2008 09:07:25 +0000
adopted and updated
- new version
- small changes in PKGBUILD file
Comment by: marco.it on Wed, 16 Jan 2008 00:13:47 +0000
3.0.1 released
Comment by: Romashka on Fri, 12 Oct 2007 12:41:05 +0000
3.0.0 released
Comment by: nelver on Wed, 09 May 2007 13:18:00 +0000
thank you for helping!
i haven\'t noticed that, \'cause i only need stardict-editor.
sorry for the inconvenient.
Comment by: mykhal on Wed, 18 Apr 2007 20:50:57 +0000
But you do not include the tools themselves, only stardict-editor is installed, did you notice this ?

I propose something like this:

build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
# only stardict-editor was installed
# so install also the tools, but not into /usr/bin
# but rather into /usr/share/stardict-tools
#
# these are noinst_PROGRAMS from the Makefile, which were compiled
tools=\"pydict2dic olddic2newdic oxford2dic directory2dic dictd2dic wquick2dic ec50 directory2treedic treedict2dir jdictionary mova xmlinout soothill kanjidic2 powerword kdic 21tech 21shiji buddhist tabfile dsl2dict cedict edict duden stardict_dict_update degb2utf frgb2utf jpgb2utf gmx2utf rucn kingsoft wikipedia babylon stardict2txt stardict_verify\"
# there also extra files, we\'ll omit some of them (.exe files)
# from the Makefile: EXTRA_DIST = example.ifo example_treedict.tar.bz2 hanzim2dict.py jm2stardict.py uyghur2dict.py ncce2stardict.pl parse-oxford.perl dictgen.php DeKDic.exe KSDrip.exe
extra_exec=\"hanzim2dict.py jm2stardict.py uyghur2dict.py ncce2stardict.pl parse-oxford.perl dictgen.php\"
extra_noexec=\"example.ifo example_treedict.tar.bz2\"
instdir=$startdir/pkg/usr/share/stardict-tools
cd src
for i in $tools $extra_exec; do
install -D -m755 $i $instdir/$i
done
for i in $extra_noexec; do
install -D -m644 $i $instdir/$i
done
}
Comment by: nelver on Wed, 18 Apr 2007 13:33:09 +0000
Program to convert from a dictionary format to another

v1.6.0