wok-6.x view abiword/receipt @ rev 24403
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 18:20:23 2022 +0000 (2022-02-08) |
parents | 88afc2f95640 |
children | bc2b9d9bed6f |
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 compile_rules()
35 {
36 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
37 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
38 sed -i 's|--no-undefined||' src/Makefile*
39 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
40 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
41 ./configure \
42 --prefix=/usr \
43 --infodir=/usr/share/info \
44 --mandir=/usr/share/man \
45 --enable-plugins \
46 --enable-clipart \
47 --enable-templates \
48 --disable-collab-backend-sugar \
49 $CONFIGURE_ARGS &&
50 make $MAKEFLAGS &&
51 make DESTDIR=$DESTDIR install
53 cd plugins
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/lib/*.so $fs/usr/lib
65 cp -a $install/usr/share/abiword-* $fs/usr/share
67 # Non standard pixmap
68 cp $install/usr/share/icons/abiword_48.png \
69 $fs/usr/share/pixmaps/abiword.png
71 # fix error when abiword is run in command line
72 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
74 # Non-standard locale use: get all official SliTaz locales
75 rm $fs/usr/share/abiword-*/strings/*
76 rm $fs/usr/share/abiword-*/templates/*
77 rm $fs/usr/share/abiword-*/system.pro*
79 for LOCALE in $LOCALES; do
80 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
81 $fs/usr/share/abiword-*/strings/
82 # id locale not complete in sources
83 if [ "$LOCALE" != "id" ]; then
84 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
85 $fs/usr/share/abiword-*/templates/
86 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
87 $fs/usr/share/abiword-*/
88 fi
89 done
91 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
92 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
93 }