SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "dillo"

# SliTaz package receipt.

PACKAGE="dillo"
VERSION="3.0.5"
CATEGORY="network"
TAGS="web-browser"
SHORT_DESC="Light and fast web browser using FLTK."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://web.archive.org/web/20220511073123/https://www.dillo.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://web.archive.org/web/20210410093347if_/https://www.dillo.org/download/$TARBALL"

DEPENDS="fltk gcc-lib-base jpeg libpng openssl xorg-libX11 zlib"
BUILD_DEPENDS="fltk-dev jpeg-dev libpng-dev openssl-dev zlib-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - https://www.dillo.org/download/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
#    patch -p0 < $stuff/fltk-1.3.3.u
    cp -f $stuff/pixmaps.slitaz.h src/pixmaps.h

    ./configure            \
        --sysconfdir=/etc    \
        --prefix=/usr        \
        --enable-ssl        \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/dillo    $fs/usr/lib
    strip -s            $fs/usr/lib/dillo/dpi/*/*
    chmod +x            $fs/usr/bin/*

    # Configuration files with custom dillorc to have webhome
    cp -a $install/etc        $fs
    cp -a $stuff/dillorc        $fs/etc/dillo
    cp -a $stuff/webhome        $fs/usr/share

    # Dillo version for user agent string
    sed -i s"/_dillo_version_/$VERSION/" $fs/etc/dillo/dillorc

    chown -R root.root        $fs
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)