wok-current view abiword/receipt @ rev 13593
libmikmod: force /bin/bash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 08 10:35:56 2012 +0100 (2012-11-08) |
parents | 683d3c6a898a |
children | ded01e3a36b7 |
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 ./configure \
29 --prefix=/usr \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 --enable-plugins \
33 --enable-clipart \
34 --enable-templates \
35 --disable-collab-backend-sugar \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS &&
38 make DESTDIR=$PWD/_pkg install
40 cd plugins
41 make DESTDIR=$src/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
49 cp -a $_pkg/usr/bin $fs/usr
50 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
52 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
54 # Non standard pixmap
55 cp $_pkg/usr/share/icons/abiword_48.png \
56 $fs/usr/share/pixmaps/abiword.png
58 # fix error when abiword is run in command line
59 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
61 # Non-standard locale use: get all official SliTaz locales
62 rm $fs/usr/share/abiword-*/strings/*
63 rm $fs/usr/share/abiword-*/templates/*
64 rm $fs/usr/share/abiword-*/system.pro*
66 for LOCALE in $LOCALES; do
67 cp $_pkg/usr/share/abiword-*/strings/$LOCALE*.strings \
68 $fs/usr/share/abiword-*/strings/
69 # id locale not complete in sources
70 if [ "$LOCALE" != "id" ]; then
71 cp $_pkg/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
72 $fs/usr/share/abiword-*/templates/
73 cp $_pkg/usr/share/abiword-*/system.profile-$LOCALE* \
74 $fs/usr/share/abiword-*/
75 fi
76 done
78 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
79 cp $_pkg/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
80 }