wok annotate stardict/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (20 months ago)
parents d765616e1f3d
children 65ff25c4de90
rev   line source
lufeng369@7378 1 # SliTaz package receipt.
lufeng369@7378 2
lufeng369@7378 3 PACKAGE="stardict"
lufeng369@7378 4 VERSION="3.0.1"
lufeng369@7378 5 CATEGORY="utilities"
Hans-G?nter@22795 6 SHORT_DESC="A powerful international dictionary written in Gtk2."
pascal@16047 7 MAINTAINER="lufeng369@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
pascal@25460 9 WEB_SITE="https://stardict-4.sourceforge.net/"
Hans-G?nter@22795 10
lufeng369@7378 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@24979 12 WGET_URL="https://downloads.sourceforge.net/stardict-4/$TARBALL"
lufeng369@7378 13
Hans-G?nter@22795 14 DEPENDS="enchant gtk+ libsigc++ xorg-libSM"
Hans-G?nter@22795 15 BUILD_DEPENDS="bzip2 enchant-dev gtk+-dev intltool libffi libsigc++-dev \
Hans-G?nter@22795 16 popt util-linux-uuid-dev xorg-libSM-dev zlib-dev"
pascal@14999 17
pascal@24361 18 # What is the latest version available today?
pascal@24361 19 current_version()
pascal@24361 20 {
pascal@24361 21 wget -O - http://stardict-4.sourceforge.net/index_en.php 2>/dev/null | \
pascal@24361 22 sed '/StarDict [0-9]/!d;s|.*StarDict ||;s|<.*||;q'
pascal@24361 23 }
pascal@24361 24
lufeng369@7378 25 # Rules to configure and make the package.
lufeng369@7378 26 compile_rules()
lufeng369@7378 27 {
Hans-G?nter@22795 28 sed -i 's/<vector>/&\n#include <stdio.h>/' \
Hans-G?nter@22795 29 stardict-plugins/stardict-wordnet-plugin/scene.hpp
pascal@14999 30 patch -p1 < $stuff/sigc++.patch || return 1
pascal@14999 31 patch -p1 < $stuff/stardict_gcc43.patch || return 1
lufeng369@7378 32
Hans-G?nter@22795 33 ./configure \
Hans-G?nter@22795 34 --prefix=/usr \
Hans-G?nter@22795 35 --disable-man \
Hans-G?nter@22795 36 --disable-qqwry \
Hans-G?nter@22795 37 --sysconfdir=/etc \
Hans-G?nter@22795 38 --disable-gnome-support \
Hans-G?nter@22795 39 --disable-schemas-install \
Hans-G?nter@22795 40 --disable-espeak \
Hans-G?nter@22795 41 --disable-gucharmap \
Hans-G?nter@22795 42 --disable-festival \
Hans-G?nter@22795 43 --disable-advertisement \
Hans-G?nter@22795 44 --disable-updateinfo \
Hans-G?nter@22795 45 $CONFIGURE_ARGS &&
Hans-G?nter@22795 46 make &&
Hans-G?nter@22795 47 make DESTDIR=$DESTDIR install
lufeng369@7378 48 }
lufeng369@7378 49
lufeng369@7378 50 # Rules to gen a SliTaz package suitable for Tazpkg.
lufeng369@7378 51 genpkg_rules()
lufeng369@7378 52 {
pascal@14999 53 mkdir -p $fs/usr
Hans-G?nter@22795 54 cp -a $install/usr $fs
lufeng369@7378 55 }