stardict-3.0.1(星际译王)

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


# SliTaz package receipt.

PACKAGE="stardict"
VERSION="3.0.1"
CATEGORY="utilities"
SHORT_DESC="A powerful international dictionary written in Gtk2"
MAINTAINER="lufeng369@xxxxxxxxx"
DEPENDS="enchant libsigc++ gtk+ xorg-libSM"
BUILD_DEPENDS="bzip2 enchant-dev tar intltool popt libsigc++-dev gtk+-dev xorg-libSM-dev zlib-dev util-linux-ng-uuid-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://stardict.sourceforge.net"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    mkdir stuff   

#    wget http://repos.archlinux.org/wsvn/packages/stardict/repos/extra-i686/gtk_gthread_fixes.patch
    wget -O stuff/sigc++.patch http://repos.archlinux.org/wsvn/packages/stardict/repos/extra-i686/sigc++.patch?op=dl
    wget -O stuff/stardict_gcc43.patch http://repos.archlinux.org/wsvn/packages/stardict/repos/extra-i686/stardict_gcc43.patch?op=dl
    cd $src
       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 &&
    make && make DESTDIR=$PWD/_pkg install
}

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


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/