wok-next view abiword/receipt @ rev 20500
Tiny edits: fix permissions and avoid out-of-tree files.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Mar 15 20:43:55 2018 +0200 (2018-03-15) |
parents | 3417c3ffbd13 |
children | 835b3b8ce6ac |
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 WEB_SITE="http://www.abisource.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
13 LOCALES="ar ca cs da de el en es fa fi fr hr hu id is it ja nb nl nn pl pt ro \
14 ru sl sv tr uk vi zh"
16 BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \
17 pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \
18 libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \
19 bison goffice-dev intltool gettext xorg-dev zlib-dev "
20 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev
21 SPLIT="abiword-plugins abiword abiword-dev"
23 compile_rules() {
24 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
25 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
26 sed -i 's|--no-undefined||' src/Makefile*
27 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 || return 1
41 cd plugins
42 make DESTDIR=$DESTDIR install
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 abiword-plugins)
48 copy plugins/*.so
49 CAT="office|extra plugins: MSWord, OpenDocument, Wikidepia, etc."
50 DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt"
51 TAGS="doc odf docx"
52 ;;
53 abiword)
54 copy @std @rm
55 TAGS="word doc office"
56 DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \
57 libgsf glib enchant wv xorg-libXdamage gcc-lib-base \
58 librsvg goffice glibc-locale libffi"
59 SUGGESTED="abiword-plugins"
61 # Non-standard locale use: get all official SliTaz locales
62 rm $fs/usr/share/abiword-*/strings/*
63 rm $fs/usr/share/abiword-*/system.profile-*
64 rm $fs/usr/share/abiword-*/templates/normal.awt-*
66 for LOCALE in $LOCALES; do
67 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
68 $fs/usr/share/abiword-*/strings/
69 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
70 $fs/usr/share/abiword-*/
71 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
72 $fs/usr/share/abiword-*/templates/
73 done 2>/dev/null
74 ;;
75 abiword-dev)
76 copy @dev
77 ;;
78 esac
79 }