#!/bin/bash

#currdir=`pwd`

packages_dir=$GSDL3SRCHOME/ext/testing/source/packages
mkdir -p $packages_dir
pushd $packages_dir

version=3.5.28

wget --no-check-certificate -O djvulibre.tar.gz https://sourceforge.net/projects/djvu/files/DjVuLibre/$version/djvulibre-$version.tar.gz/download

tar -xvzf djvulibre.tar.gz

#mv djvulibre-$version djvulibre
cd djvulibre-$version

./configure --prefix=$GSDL3SRCHOME/ext/djvulibre
make
make install

popd

