wok view abiword/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents dcaa989c1de7
children 88afc2f95640
line source
1 # SliTaz package receipt.
3 PACKAGE="abiword"
4 VERSION="2.8.6"
5 CATEGORY="office"
6 SHORT_DESC="Light and speed word processing application."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="abiword-plugins"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.abisource.com/"
12 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
13 TAGS="word doc office"
14 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
16 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
17 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base \
18 librsvg goffice glibc-locale libffi"
19 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
20 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
21 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
22 SUGGESTED="abiword-plugins"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - http://www.abisource.com/downloads/abiword/$( \
28 wget -O - http://www.abisource.com/downloads/abiword/ 2>/dev/null | \
29 sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]\\)/.*|\\1|" | sort -Vr | sed q)/source/ 2>/dev/null | \
30 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
38 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
39 sed -i 's|--no-undefined||' src/Makefile*
40 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
41 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
42 ./configure \
43 --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --enable-plugins \
47 --enable-clipart \
48 --enable-templates \
49 --disable-collab-backend-sugar \
50 $CONFIGURE_ARGS &&
51 make $MAKEFLAGS &&
52 make DESTDIR=$DESTDIR install
54 cd plugins
55 make DESTDIR=$DESTDIR install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/lib/*.so $fs/usr/lib
66 cp -a $install/usr/share/abiword-* $fs/usr/share
68 # Non standard pixmap
69 cp $install/usr/share/icons/abiword_48.png \
70 $fs/usr/share/pixmaps/abiword.png
72 # fix error when abiword is run in command line
73 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
75 # Non-standard locale use: get all official SliTaz locales
76 rm $fs/usr/share/abiword-*/strings/*
77 rm $fs/usr/share/abiword-*/templates/*
78 rm $fs/usr/share/abiword-*/system.pro*
80 for LOCALE in $LOCALES; do
81 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
82 $fs/usr/share/abiword-*/strings/
83 # id locale not complete in sources
84 if [ "$LOCALE" != "id" ]; then
85 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
86 $fs/usr/share/abiword-*/templates/
87 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
88 $fs/usr/share/abiword-*/
89 fi
90 done
92 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
93 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
94 }