SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lyx"

# SliTaz package receipt.

PACKAGE="lyx"
VERSION="2.3.6.1"
CATEGORY="office"
SHORT_DESC="An advanced WYSIWYM document processor and LaTeX front-end."
MAINTAINER="gokhlayeh@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.lyx.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="ftp://ftp.lyx.org/pub/lyx/stable/${VERSION%.*.*}.x/$TARBALL"

DEPENDS="aiksaurus aspell bzlib gcc83-lib-base libQtGui libQtSvg python"
BUILD_DEPENDS="aiksaurus-dev aspell-dev bison gcc83 python Qt4-dev 
    xorg-libX11-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/released\./!d;s|.*LyX ||;s| rel.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # 2.3.4.4 unrecognised:
    # --with-frontend=qt4
    ./configure            \
        CC=gcc-83        \
        CXX=g++-83        \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/share/lyx    $fs/usr/share

    rm -r                $fs/usr/share/lyx/doc
    rm -r                $fs/usr/share/lyx/examples
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)