SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "djview"

# SliTaz package receipt.

PACKAGE="djview"
VERSION="4.12"
CATEGORY="graphics"
SHORT_DESC="Djvu files viewer."
MAINTAINER="psychomaniak@xakep.ru"
LICENSE="GPL2"
WEB_SITE="https://djvu.sourceforge.net/djview4.html"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/djvu/$TARBALL"

DEPENDS="djvulibre libQtGui libQtNetwork libQtOpenGL"
BUILD_DEPENDS="autoconf automake djvulibre-dev file libtool mesa-dev
    qmake Qt4-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/djvu/files/DjView/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/DjView/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./autogen.sh &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
    rm -rf            $fs/usr/lib/*/*/*.la
    rm -rf            $fs/usr/share/man
    ln -s djview        $fs/usr/bin/djview4
    cd $fs/usr/share/icons/hicolor/32x32/
    mv mime* apps
    rm -rf            ../64x64
    rm -rf            ../scalable
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)