wok view abiword/receipt @ rev 22975
updated jsoncpp (1.8.4 -> 1.9.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 29 15:32:23 2020 +0100 (2020-02-29) |
parents | 11b5e93cb5f2 |
children | 3105f866bc3e |
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 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
28 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
29 sed -i 's|--no-undefined||' src/Makefile*
30 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
31 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 --enable-plugins \
37 --enable-clipart \
38 --enable-templates \
39 --disable-collab-backend-sugar \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS &&
42 make DESTDIR=$DESTDIR install
44 cd plugins
45 make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/lib/*.so $fs/usr/lib
56 cp -a $install/usr/share/abiword-* $fs/usr/share
58 # Non standard pixmap
59 cp $install/usr/share/icons/abiword_48.png \
60 $fs/usr/share/pixmaps/abiword.png
62 # fix error when abiword is run in command line
63 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
65 # Non-standard locale use: get all official SliTaz locales
66 rm $fs/usr/share/abiword-*/strings/*
67 rm $fs/usr/share/abiword-*/templates/*
68 rm $fs/usr/share/abiword-*/system.pro*
70 for LOCALE in $LOCALES; do
71 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
72 $fs/usr/share/abiword-*/strings/
73 # id locale not complete in sources
74 if [ "$LOCALE" != "id" ]; then
75 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
76 $fs/usr/share/abiword-*/templates/
77 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
78 $fs/usr/share/abiword-*/
79 fi
80 done
82 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
83 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
84 }