wok-next view abiword/receipt @ rev 20037

Up sshttp (0-35s2), sshguard (2.0.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 18:48:45 2017 +0200 (2017-10-22)
parents 0a1321c0d5e5
children 3417c3ffbd13
line source
1 # SliTaz package receipt.
3 PACKAGE="abiword"
4 VERSION="3.0.2"
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+3 fribidi libglade \
17 popt libxml2 libart_lgpl libgsf glib enchant wv xorg-libXdamage gcc-lib-base \
18 librsvg goffice glibc-locale libffi"
19 BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \
20 pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \
21 libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \
22 bison goffice-dev intltool gettext xorg-dev zlib-dev "
23 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev
24 SUGGESTED="abiword-plugins"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
30 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
31 sed -i 's|--no-undefined||' src/Makefile*
32 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --enable-plugins \
38 --enable-clipart \
39 --enable-templates \
40 --disable-collab-backend-sugar \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS &&
43 make DESTDIR=$DESTDIR install
45 cd plugins
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/*.so $fs/usr/lib
57 cp -a $install/usr/share/abiword-* $fs/usr/share
59 # Non standard pixmap
61 # fix error when abiword is run in command line
62 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
64 # Non-standard locale use: get all official SliTaz locales
65 rm $fs/usr/share/abiword-*/strings/*
66 rm $fs/usr/share/abiword-*/templates/*
67 rm $fs/usr/share/abiword-*/system.pro*
69 for LOCALE in $LOCALES; do
70 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
71 $fs/usr/share/abiword-*/strings/
72 # id locale not complete in sources
73 if [ "$LOCALE" != "id" ]; then
74 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
75 $fs/usr/share/abiword-*/templates/
76 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
77 $fs/usr/share/abiword-*/
78 fi
79 done
81 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
82 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
83 }