wok-current view abiword/receipt @ rev 19479

paper-icon-theme: update from git, make package a way smaller (remove HiDPI icons and shrink svg icons)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 01 04:02:18 2016 +0200 (2016-11-01)
parents 45507bfb2b0d
children dcaa989c1de7
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 \
18 librsvg 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
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 }