wok view abiword/receipt @ rev 25735

Remove iptraf: replaced by iptraf-ng
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 23 09:39:49 2024 +0000 (2 months ago)
parents aba2c5ca9a66
children
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="https://gitlab.gnome.org/World/AbiWord"
12 WGET_URL="https://gitlab.gnome.org/World/AbiWord/-/archive/release-$VERSION/AbiWord-release-$VERSION.tar.gz"
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 automake"
22 SUGGESTED="abiword-plugins"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - https://gitlab.gnome.org/World/AbiWord/-/tags?sort=updated_desc 2>/dev/null | \
28 sed '/item-title/!d;s|.*release-||;s|<.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./autogen.sh
35 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
36 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
37 sed -i 's|--no-undefined||' src/Makefile*
38 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
39 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
40 ./configure \
41 --prefix=/usr \
42 --infodir=/usr/share/info \
43 --mandir=/usr/share/man \
44 --enable-plugins \
45 --enable-clipart \
46 --enable-templates \
47 --disable-collab-backend-sugar \
48 $CONFIGURE_ARGS &&
49 make $MAKEFLAGS &&
50 make DESTDIR=$DESTDIR install
52 cd plugins
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/usr/lib/*.so $fs/usr/lib
64 cp -a $install/usr/share/abiword-* $fs/usr/share
66 # Non standard pixmap
67 cp $install/usr/share/icons/abiword_48.png \
68 $fs/usr/share/pixmaps/abiword.png
70 # fix error when abiword is run in command line
71 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
73 # Non-standard locale use: get all official SliTaz locales
74 rm $fs/usr/share/abiword-*/strings/*
75 rm $fs/usr/share/abiword-*/templates/*
76 rm $fs/usr/share/abiword-*/system.pro*
78 for LOCALE in $LOCALES; do
79 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
80 $fs/usr/share/abiword-*/strings/
81 # id locale not complete in sources
82 if [ "$LOCALE" != "id" ]; then
83 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
84 $fs/usr/share/abiword-*/templates/
85 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
86 $fs/usr/share/abiword-*/
87 fi
88 done
90 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
91 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
92 }