Page 1 of 1

kiwix

Posted: 5. Sep 2011, 17:39
by portaro
Kiwix is a reader of wikipedia on offline mode.

http://www.kiwix.org/index.php/Main_Page

Re: kiwix

Posted: 7. Sep 2011, 00:32
by portaro
If the team can be kiwix work in salix please post here the notice i can use salix with this software i need.

And after i comunicate to developer and edit wiki to spread the notice for other users, and in slackware im not notices of this soft works or no.

Re: kiwix

Posted: 12. Sep 2011, 11:29
by gapan
Well, I wanted to try it too and I've gotten it to work, but there's a problem. For some weird reason, the whole application is in arabic. I'm guessing this is because it's still in beta state, so I won't deal with it any more. I will post a bug report with the project but they will have to fix that.

If you want to try it too, you'll need to install clucene with slapt-get/gslapt if you don't have it yet and then use slapt-src/sourcery to install libmicrohttpd, xapian-core and xulrunner. Then you can use this SLKBUILD to create a package for kiwix:

Code: Select all

#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=kiwix
pkgver=0.9beta2
pkgrel=1gv
source=("http://downloads.sourceforge.net/project/kiwix/kiwix-0.9-beta2-src.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.kiwix.org

doinst() {
if [ -x usr/bin/update-mime-database ]; then
        usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
        usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
}


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"kiwix (an offline reader for web content)"
"Kiwix is an offline reader for Web content. It's especially intended"
"to make Wikipedia available offline. This is done by reading the"
"content of the project stored in a file format ZIM, a high compressed"
"open format with additional meta-data."
)


build() {
        cd $startdir/src/$pkgname-0.9
        
        # clucene puts include files in /usr/lib$(LIBDIRSUFFIX} for some
        # weird reason and the configure script looks only in /usr/lib,
        # so configure fails by default in 64-bit platforms.
        sed -i "s|-I/usr/lib|-I/usr/lib${LIBDIRSUFFIX}|" configure

        ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static --build=$arch-slackware-linux
        make -j $numjobs || return 1
        make install DESTDIR=$startdir/pkg

        # icons...
        for SIZE in 256 48 32 24 22 16; do
                mkdir -p $startdir/pkg/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps
                cp $startdir/pkg/usr/share/pixmaps/kiwix_${SIZE}x${SIZE}.png $startdir/pkg/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/kiwix.png
        done
}
Save this in a file named SLKBUILD and then in the same directory as this file run:

Code: Select all

fakeroot slkbuild -X

Re: kiwix

Posted: 12. Sep 2011, 16:48
by gapan
OK, so if you get kiwix in arabic too, you can just navigate to the 3rd menu from the right, then 5th menu entry down and you can select one of the supported languages. I have it in english now.

Re: kiwix

Posted: 16. Sep 2011, 01:21
by portaro
and it works or no?

im not any idea about compiing and package sources in slackware.
BUT im interesting in learn how to package in slack, i need this software and because this i dont any slack in this moment in my pc.

if i can use this soft i say thanks to the salix, and of corse i comunicate to kelson the new for he spread the notice in channels of kiwix.

Answer me this , the kiwix in this moment works very well in salix or no? with indexing?

Many thanks gapan, for help and answer my questions. Thanks.

Re: kiwix

Posted: 16. Sep 2011, 09:44
by gapan
It works. I have added it to our slkbuild repository, so you can now install it with slapt-src/sourcery, provided you install it's dependencies first of course (aria2, clucene, libmicrohttpd, xapian-core, xulrunner).

Re: kiwix

Posted: 16. Sep 2011, 11:27
by portaro
many thanks in a few moments i send email to kelson to infor he to the new.

Thanks.

Re: kiwix

Posted: 16. Sep 2011, 13:35
by portaro
good news kelson is informed about our steps, he give to me a link to gapan can view the dependences list of kiwix to work properly.

http://kiwix.svn.sourceforge.net/viewvc ... iew=markup if something go bad with program with any dependence, in this moment i down a iso of salix in this night i install salix to test kiwix.
Many thanks.

Re: kiwix

Posted: 19. Sep 2011, 21:38
by portaro