wok-6.x view stardict/receipt @ rev 24071

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 10:35:01 2021 +0000 (2021-07-07)
parents 20661c276bcf
children 370da83187ab
line source
1 # SliTaz package receipt.
3 PACKAGE="stardict"
4 VERSION="3.0.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A powerful international dictionary written in Gtk2."
7 MAINTAINER="lufeng369@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://stardict-4.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://stardict-3.googlecode.com/files/$TARBALL"
14 DEPENDS="enchant gtk+ libsigc++ xorg-libSM"
15 BUILD_DEPENDS="bzip2 enchant-dev gtk+-dev intltool libffi libsigc++-dev \
16 popt util-linux-uuid-dev xorg-libSM-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/<vector>/&\n#include <stdio.h>/' \
22 stardict-plugins/stardict-wordnet-plugin/scene.hpp
23 patch -p1 < $stuff/sigc++.patch || return 1
24 patch -p1 < $stuff/stardict_gcc43.patch || return 1
26 ./configure \
27 --prefix=/usr \
28 --disable-man \
29 --disable-qqwry \
30 --sysconfdir=/etc \
31 --disable-gnome-support \
32 --disable-schemas-install \
33 --disable-espeak \
34 --disable-gucharmap \
35 --disable-festival \
36 --disable-advertisement \
37 --disable-updateinfo \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -a $install/usr $fs
48 }