1. VectorLinux Core
  2. vabs

Commits

Lee Pak Hong  committed d38d5f6

Add kiwix to veclinux-7.0

Signed-off-by: Lee Pak Hong <benreilly@vector.Linux.net>

  • Participants
  • Parent commits 6a531b0
  • Branches veclinux-7.0

Comments (0)

Files changed (1)

File var/vabs/kiwix/src/kiwix.SlackBuild

View file
  • Ignore whitespace
 # AUTHORS = 
 
 NAME="kiwix"            #Enter package Name!
-VERSION=${VERSION:-"0.9rc"}      #Enter package Version!
+VERSION=${VERSION:-"0.9rc2"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"hata_ph"}   #Enter your Name!
 LINK=${LINK:-"http://download.kiwix.org/src/$NAME-0.9~rc2-src.tar.gz"}  #Enter URL for package here!
 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"xapian-core libmicrohttpd aria2 clucene"} #Add deps needed TO BUILD this package here.
+MAKEDEPENDS=${MAKEDEPENDS:-"xapian-core libmicrohttpd aria2 clucene xulrunner"} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
   LIBDIRSUFFIX=""
 fi
 
+
 export CFLAGS="$SLKCFLAGS $CFLAG_OPTIONS"
 export CXXFLAGS=$CFLAGS
 export LDFLAGS="$LDFLAGS $LDFLAG_OPTIONS"
 #
 #-----------------------------------------------------------------------
 
+# manually specific nspr include dir
+export CPPFLAGS="-I/usr/include/nspr/"
+
 echo "Configuring source..."
 ./configure --prefix=/usr \
   --libdir=/usr/lib${LIBDIRSUFFIX} \
 #Miscellenious tweaks and things outside a normal ./configure go here #
 #######################################################################
 
-
+# do it manually
+rm -rf $PKG/home/
+rm -rf $PKG/usr/bin/kiwix
+ln -s /usr/lib/kiwix/kiwix $PKG/usr/bin/kiwix
 
 mkdir -p $PKG/usr/doc/$NAME-$VERSION
 cp -a AUTHORS COPYING CHANGELOG COMPILE README $PKG/usr/doc/$NAME-$VERSION
 # customary to leave one space after the ':'.
 
 $SHIM|-----handy-ruler------------------------------------------------------|
-$NAME: $NAME ()
+$NAME: $NAME (Wikipedia offline reader)
 $NAME:
-$NAME: 
-$NAME: 
-$NAME: 
-$NAME: 
+$NAME: Kiwix is an offline reader for Web content. It's especially thought to
+$NAME: make Wikipedia available offline.  This is done by reading the content
+$NAME: of the project stored in a file format ZIM, a high compressed open
+$NAME: format with additional meta-data.
 $NAME:
 $NAME:
 $NAME: License: GPL
-$NAME: Authors: 
-$NAME: Website: 
+$NAME: Authors: Refer to AUTHORS
+$NAME: Website: http://www.kiwix.org/
 
 EOF
 fi