SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "stardict"

# SliTaz package receipt.

PACKAGE="stardict"
VERSION="3.0.1"
CATEGORY="utilities"
SHORT_DESC="A powerful international dictionary written in Gtk2."
MAINTAINER="lufeng369@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://stardict-4.sourceforge.net/"

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

DEPENDS="enchant gtk+ libsigc++ xorg-libSM"
BUILD_DEPENDS="bzip2 enchant-dev gtk+-dev intltool libffi libsigc++-dev \
    popt util-linux-uuid-dev xorg-libSM-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - http://stardict-4.sourceforge.net/index_en.php 2>/dev/null | \
    sed '/StarDict [0-9]/!d;s|.*StarDict ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/<vector>/&\n#include <stdio.h>/' \
        stardict-plugins/stardict-wordnet-plugin/scene.hpp
    patch -p1 < $stuff/sigc++.patch || return 1
    patch -p1 < $stuff/stardict_gcc43.patch || return 1

    ./configure                \
        --prefix=/usr            \
        --disable-man            \
        --disable-qqwry            \
        --sysconfdir=/etc        \
        --disable-gnome-support        \
        --disable-schemas-install    \
        --disable-espeak        \
        --disable-gucharmap        \
        --disable-festival        \
        --disable-advertisement        \
        --disable-updateinfo        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr    $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)