# Description: Library for reading DjVu files
# URL: https://djvu.sourceforge.net
# Maintainer: CRUX KDE Ports, kde-ports at crux dot nu
# Depends on: hicolor-icon-theme libtiff

name=djvulibre
version=3.5.30
release=1
source=(https://sourceforge.net/projects/djvu/files/DjVuLibre/$version/$name-$version.tar.gz)

unpack_source() {
  for file in ${source[@]}; do
    case ${file##*/} in
    $name-$version.tar.gz)
      echo "Unpacking $(get_filename $file)"
      bsdtar -p -o -C $SRC -xf $(get_filename $file)
      ;;
    *)
      cp $(get_filename $file) $SRC
      ;;
    esac
  done
}

build() {
    cd $name-$version

    ./configure --prefix=/usr \
        --libdir=/usr/lib \
        --disable-static \
        --disable-desktopfiles

    make
    make DESTDIR=$PKG install
}

# vim: set ts=4 et:
