wok-next annotate abiword/receipt @ rev 13267

Up: talloc to 2.0.7.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Aug 17 15:29:05 2012 +0000 (2012-08-17)
parents 683d3c6a898a
children ded01e3a36b7
rev   line source
pankso@46 1 # SliTaz package receipt.
pankso@46 2
pankso@46 3 PACKAGE="abiword"
slaxemulator@6146 4 VERSION="2.8.6"
pankso@205 5 CATEGORY="office"
pankso@46 6 SHORT_DESC="Light and speed word processing application."
pankso@46 7 MAINTAINER="pankso@slitaz.org"
pankso@3853 8 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
gokhlayeh@5780 9 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base librsvg \
slaxemulator@9244 10 goffice glibc-locale"
pankso@3853 11 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
pankso@3853 12 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
slaxemulator@6146 13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
pankso@573 14 SUGGESTED="abiword-extras"
pankso@573 15 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@46 16 WEB_SITE="http://www.abisource.com/"
pankso@733 17 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
jozee@4931 18 TAGS="word doc office"
al@13066 19 LOCALES="cs da de es fr hu id it pt ru sl sv zh"
pankso@46 20
al@13066 21 # Rules to configure and make the package.
pankso@46 22 compile_rules()
pankso@46 23 {
pankso@573 24 cd $src
pascal@12875 25 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
pascal@12875 26 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
pascal@12875 27 sed -i 's|--no-undefined||' src/Makefile*
pankso@46 28 ./configure \
pankso@46 29 --prefix=/usr \
pankso@46 30 --infodir=/usr/share/info \
pankso@46 31 --mandir=/usr/share/man \
jozee@5272 32 --enable-plugins \
jozee@5272 33 --enable-clipart \
jozee@5272 34 --enable-templates \
jozee@5272 35 --disable-collab-backend-sugar \
pascal@4998 36 $CONFIGURE_ARGS &&
gokhlayeh@11574 37 make $MAKEFLAGS &&
pankso@573 38 make DESTDIR=$PWD/_pkg install
jozee@5272 39
jozee@5272 40 cd plugins
jozee@5272 41 make DESTDIR=$src/_pkg install
pankso@46 42 }
pankso@46 43
pankso@46 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@46 45 genpkg_rules()
pankso@46 46 {
slaxemulator@7481 47 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
al@13066 48
pankso@46 49 cp -a $_pkg/usr/bin $fs/usr
jozee@5272 50 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
al@13066 51
pankso@573 52 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
al@13066 53
pankso@3853 54 # Non standard pixmap
pankso@46 55 cp $_pkg/usr/share/icons/abiword_48.png \
pankso@46 56 $fs/usr/share/pixmaps/abiword.png
al@13066 57
slaxemulator@7481 58 # fix error when abiword is run in command line
slaxemulator@7481 59 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
al@13066 60
al@13066 61 # Non-standard locale use: get all official SliTaz locales
jozee@2800 62 rm $fs/usr/share/abiword-*/strings/*
jozee@2800 63 rm $fs/usr/share/abiword-*/templates/*
jozee@2800 64 rm $fs/usr/share/abiword-*/system.pro*
al@13066 65
al@13066 66 for LOCALE in $LOCALES; do
al@13066 67 cp $_pkg/usr/share/abiword-*/strings/$LOCALE*.strings \
al@13066 68 $fs/usr/share/abiword-*/strings/
al@13066 69 # id locale not complete in sources
al@13066 70 if [ "$LOCALE" != "id" ]; then
al@13066 71 cp $_pkg/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
al@13066 72 $fs/usr/share/abiword-*/templates/
al@13066 73 cp $_pkg/usr/share/abiword-*/system.profile-$LOCALE* \
al@13066 74 $fs/usr/share/abiword-*/
al@13066 75 fi
al@13066 76 done
al@13066 77
jozee@5275 78 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
al@13066 79 cp $_pkg/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
pankso@46 80 }
pankso@46 81