SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "scribus"

# SliTaz package receipt.

PACKAGE="scribus"
VERSION="1.4.6"
CATEGORY="office"
SHORT_DESC="professional publishing software."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://www.scribus.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="ghostscript libQtGui libQtXml libQtNetwork cups lcms libxml2 \
gcc-lib-base aspell python krb5 podofo"
BUILD_DEPENDS="cmake qmake Qt4-dev freetype freetype-dev \
cairo cairo-dev tiff tiff-dev lcms lcms-dev jpeg jpeg-dev libpng libpng-dev \
cups cups-dev fontconfig fontconfig-dev libxml2 libxml2-dev podofo-dev \
ghostscript python python-dev python-pil pkg-config aspell aspell-dev \
libboost-dev openssl openssl-dev zlib tk"

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

# Rules to configure and make the package.
compile_rules()
{
    cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
    make $MAKEFLAGS &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share $fs/usr/lib
    cp -a $install/usr/share/scribus $fs/usr/share
    cp -a $install/usr/lib/scribus $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/mimelnk $fs/usr/share
    cp -a stuff/* $fs
}

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