#Packager: George Vlahavas 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 }