wok-next view abiword/receipt @ rev 20185

abiword, apache, connman, elementary, evince, ffmpeg, go, mono: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 02 18:17:32 2017 +0100 (2017-11-02)
parents 1cfe6fd269ef
children a8e106e92cc2
line source
1 # SliTaz package receipt v2.
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 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
15 BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \
16 pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \
17 libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \
18 bison goffice-dev intltool gettext xorg-dev zlib-dev "
19 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev
20 SPLIT="abiword abiword-dev abiword-plugins"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
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=$DESTDIR install
41 cd plugins
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 abiword)
50 TAGS="word doc office"
51 DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \
52 libgsf glib enchant wv xorg-libXdamage gcc-lib-base \
53 librsvg goffice glibc-locale libffi"
54 SUGGESTED="abiword-plugins"
55 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib/*.so $fs/usr/lib
60 cp -a $install/usr/share/abiword-* $fs/usr/share
62 # Non standard pixmap
64 # fix error when abiword is run in command line
65 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
67 # Non-standard locale use: get all official SliTaz locales
68 rm $fs/usr/share/abiword-*/strings/*
69 rm $fs/usr/share/abiword-*/templates/*
70 rm $fs/usr/share/abiword-*/system.pro*
72 for LOCALE in $LOCALES; do
73 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
74 $fs/usr/share/abiword-*/strings/
75 # id locale not complete in sources
76 if [ "$LOCALE" != "id" ]; then
77 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
78 $fs/usr/share/abiword-*/templates/
79 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
80 $fs/usr/share/abiword-*/
81 fi
82 done
84 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
85 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
86 ;;
87 abiword-dev)
88 CAT="development|Abiword devel files"
89 DEPENDS="pkg-config"
90 mkdir -p $fs/usr/lib/abiword-2.8/plugins
91 cp -a $install/usr/lib/*.*a $fs/usr/lib
92 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
93 cp -a $install/usr/lib/abiword-*/plugins/*.*a \
94 $fs/usr/lib/abiword-2.8/plugins
95 cp -a $install/usr/include $fs/usr
96 ;;
97 abiword-plugins)
98 CAT="office|Extra plugins for Abiword (MSWord, OpenDocument, Wikidepia, etc)."
99 TAGS="doc odf docx"
100 DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt"
101 mkdir -p $fs/usr/lib/abiword-2.8/plugins $fs/usr/share
103 cp -a $install/usr/lib/abiword-*/plugins/*.so \
104 $fs/usr/lib/abiword-2.8/plugins
106 ;;
107 esac
108 }