wok-current view abiword/receipt @ rev 13882

busybox-boot: add mount=, loopfs= & subroot= cmdline args (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 17 15:57:34 2013 +0100 (2013-01-17)
parents cf7d783d1fdf
children 7896f0694ef6
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 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
9 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base librsvg \
10 goffice glibc-locale"
11 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
12 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
14 SUGGESTED="abiword-extras"
15 TARBALL="$PACKAGE-$VERSION.tar.gz"
16 WEB_SITE="http://www.abisource.com/"
17 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
18 TAGS="word doc office"
19 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
26 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
27 sed -i 's|--no-undefined||' src/Makefile*
28 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --enable-plugins \
34 --enable-clipart \
35 --enable-templates \
36 --disable-collab-backend-sugar \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$PWD/_pkg install
41 cd plugins
42 make DESTDIR=$src/_pkg install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
50 cp -a $_pkg/usr/bin $fs/usr
51 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
53 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
55 # Non standard pixmap
56 cp $_pkg/usr/share/icons/abiword_48.png \
57 $fs/usr/share/pixmaps/abiword.png
59 # fix error when abiword is run in command line
60 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
62 # Non-standard locale use: get all official SliTaz locales
63 rm $fs/usr/share/abiword-*/strings/*
64 rm $fs/usr/share/abiword-*/templates/*
65 rm $fs/usr/share/abiword-*/system.pro*
67 for LOCALE in $LOCALES; do
68 cp $_pkg/usr/share/abiword-*/strings/$LOCALE*.strings \
69 $fs/usr/share/abiword-*/strings/
70 # id locale not complete in sources
71 if [ "$LOCALE" != "id" ]; then
72 cp $_pkg/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
73 $fs/usr/share/abiword-*/templates/
74 cp $_pkg/usr/share/abiword-*/system.profile-$LOCALE* \
75 $fs/usr/share/abiword-*/
76 fi
77 done
79 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
80 cp $_pkg/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
81 }