wok view stardict/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 7dd01dedad38 |
children |
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="https://stardict-4.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/stardict-4/$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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - http://stardict-4.sourceforge.net/index_en.php 2>/dev/null | \
22 sed '/StarDict [0-9]/!d;s|.*StarDict ||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's/<vector>/&\n#include <stdio.h>/' \
29 stardict-plugins/stardict-wordnet-plugin/scene.hpp
30 patch -p1 < $stuff/sigc++.patch || return 1
31 patch -p1 < $stuff/stardict_gcc43.patch || return 1
33 ./configure \
34 --prefix=/usr \
35 --disable-man \
36 --disable-qqwry \
37 --sysconfdir=/etc \
38 --disable-gnome-support \
39 --disable-schemas-install \
40 --disable-espeak \
41 --disable-gucharmap \
42 --disable-festival \
43 --disable-advertisement \
44 --disable-updateinfo \
45 $CONFIGURE_ARGS &&
46 make &&
47 make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr
54 cp -a $install/usr $fs
55 }