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
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
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[])
{
This builds and runs on x86_64. Also, mysql is a dependency.
Thanks for the error report. It should be ok now! Just a small gcc issue.
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
adopted and updated
- new version
- small changes in PKGBUILD file
3.0.1 released
3.0.0 released
thank you for helping!
i haven\'t noticed that, \'cause i only need stardict-editor.
sorry for the inconvenient.
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
}
Program to convert from a dictionary format to another
v1.6.0