wok-current view abiword/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (5 months ago) |
parents | aba2c5ca9a66 |
children | d3ba73c6de01 |
line source
1 # SliTaz package receipt.
3 PACKAGE="abiword"
4 VERSION="3.0.5"
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://fossies.org/linux/misc/$TARBALL"
13 TAGS="word doc office"
14 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
16 DEPENDS="librsvg wv libwmf"
17 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev fribidi-dev wv-dev \
18 libgsf-dev librsvg-dev libboost-dev libwmf-dev"
19 SUGGESTED="abiword-plugins"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - http://www.abisource.com/downloads/abiword/ 2>/dev/null | \
25 sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]*\\)/.*|http://www.abisource.com/downloads/abiword/\\1/source/|" | \
26 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
27 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
34 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
35 sed -i 's|--no-undefined||' src/Makefile*
36 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
37 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
39 # Fix build with recent gcc
40 export CXXFLAGS="$CXXFLAGS -fpermissive"
42 ./configure \
43 --prefix=/usr \
44 --with-gtk2 \
45 --infodir=/usr/share/info \
46 --mandir=/usr/share/man \
47 --enable-plugins \
48 --enable-clipart \
49 --enable-templates \
50 --disable-collab-backend-sugar \
51 $CONFIGURE_ARGS
53 make $MAKEFLAGS &&
54 make DESTDIR=$DESTDIR install
56 cd plugins
57 make DESTDIR=$DESTDIR install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins
65 cp -a $install/usr/bin $fs/usr
66 cp -a $install/usr/lib/*.so $fs/usr/lib
68 cp -a $install/usr/share/abiword-* $fs/usr/share
70 cp -a $install/usr/share/icons $fs/usr/share
71 # Non standard pixmap
72 cp $install/usr/share/icons/hicolor/48x48/apps/abiword.png \
73 $fs/usr/share/pixmaps/abiword.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 }