wok view abiword/receipt @ rev 15029

partclone: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 12 09:47:27 2013 +0000 (2013-08-12)
parents ded01e3a36b7
children 35c68ef9e128
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-extras"
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 librsvg \
18 goffice glibc-locale"
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"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
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 ./configure \
32 --prefix=/usr \
33 --infodir=/usr/share/info \
34 --mandir=/usr/share/man \
35 --enable-plugins \
36 --enable-clipart \
37 --enable-templates \
38 --disable-collab-backend-sugar \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
43 cd plugins
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/*.so $fs/usr/lib
55 cp -a $install/usr/share/abiword-* $fs/usr/share
57 # Non standard pixmap
58 cp $install/usr/share/icons/abiword_48.png \
59 $fs/usr/share/pixmaps/abiword.png
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 }