wok view abiword/receipt @ rev 19264

Compress manpages (in $install/usr/share/man/...)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 04 00:54:49 2016 +0300 (2016-07-04)
parents 5f6dfba73c57
children 11b5e93cb5f2
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 librsvg \
18 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 ./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
46 cook_compress_manpages
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
60 cp $install/usr/share/icons/abiword_48.png \
61 $fs/usr/share/pixmaps/abiword.png
63 # fix error when abiword is run in command line
64 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
66 # Non-standard locale use: get all official SliTaz locales
67 rm $fs/usr/share/abiword-*/strings/*
68 rm $fs/usr/share/abiword-*/templates/*
69 rm $fs/usr/share/abiword-*/system.pro*
71 for LOCALE in $LOCALES; do
72 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
73 $fs/usr/share/abiword-*/strings/
74 # id locale not complete in sources
75 if [ "$LOCALE" != "id" ]; then
76 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
77 $fs/usr/share/abiword-*/templates/
78 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
79 $fs/usr/share/abiword-*/
80 fi
81 done
83 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
84 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
85 }