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