SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "kompozer"

# SliTaz package receipt.

PACKAGE="kompozer"
VERSION="0.8b3"
CATEGORY="network"
SHORT_DESC="KompoZer is a complete web authoring system."
MAINTAINER="maintainer@slitaz.org"
LICENSE="MPL1.1"
WEB_SITE="http://kompozer.net"

TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gtk+ libxml2"
BUILD_DEPENDS="coreutils findutils gtk+-dev gtk-girepository libIDL
    libXaw3dXft-dev libxml2-dev nspr-dev pango-dev pkg-config
    perl xorg-libXft-dev zip pangox-compat-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    grep -l 'uname -m' * | xargs sed -i 's|uname -m|echo i686|'
    echo ac_add_options --enable-application=composer > .mozconfig
    cp -a security/coreconf/Linux2.6.mk security/coreconf/Linux3.16.mk

    {
    ./configure            \
        --with-system-nspr    \
        --prefix=/usr        \
        --disable-glibtest    \
        --disable-libIDLtest    \
        --disable-updater    \
        --disable-tests        \
        --enable-system-cairo    \
        --enable-installer &&
    make -j 1 &&
    make install DESTDIR=$DESTDIR
    } 2>&1 | sed "s|build_number': No such|build_number': no such|"
}

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

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/kompozer    $fs/usr/lib
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)