wok-next annotate 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 |
rev | line source |
---|---|
pascal@20185 | 1 # SliTaz package receipt v2. |
pankso@46 | 2 |
pankso@46 | 3 PACKAGE="abiword" |
psychomaniak@20013 | 4 VERSION="3.0.2" |
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 LOCALES="cs da de es fr hu id it pt ru sl sv zh" |
pascal@15002 | 14 |
psychomaniak@20013 | 15 BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \ |
psychomaniak@20013 | 16 pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \ |
psychomaniak@20014 | 17 libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \ |
psychomaniak@20014 | 18 bison goffice-dev intltool gettext xorg-dev zlib-dev " |
psychomaniak@20013 | 19 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev |
pascal@20185 | 20 SPLIT="abiword abiword-dev abiword-plugins" |
pankso@46 | 21 |
al@13066 | 22 # Rules to configure and make the package. |
pankso@46 | 23 compile_rules() |
pankso@46 | 24 { |
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* |
pascal@13828 | 28 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile* |
pankso@46 | 29 ./configure \ |
pankso@46 | 30 --prefix=/usr \ |
pankso@46 | 31 --infodir=/usr/share/info \ |
pankso@46 | 32 --mandir=/usr/share/man \ |
jozee@5272 | 33 --enable-plugins \ |
jozee@5272 | 34 --enable-clipart \ |
jozee@5272 | 35 --enable-templates \ |
jozee@5272 | 36 --disable-collab-backend-sugar \ |
pascal@4998 | 37 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 38 make $MAKEFLAGS && |
pascal@15002 | 39 make DESTDIR=$DESTDIR install |
jozee@5272 | 40 |
jozee@5272 | 41 cd plugins |
pascal@15002 | 42 make DESTDIR=$DESTDIR install |
pankso@46 | 43 } |
pankso@46 | 44 |
pankso@46 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 46 genpkg_rules() |
pankso@46 | 47 { |
pascal@20185 | 48 case $PACKAGE in |
pascal@20185 | 49 abiword) |
pascal@20185 | 50 TAGS="word doc office" |
pascal@20185 | 51 DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \ |
pascal@20185 | 52 libgsf glib enchant wv xorg-libXdamage gcc-lib-base \ |
pascal@20185 | 53 librsvg goffice glibc-locale libffi" |
pascal@20185 | 54 SUGGESTED="abiword-plugins" |
pascal@20185 | 55 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons |
al@13066 | 56 |
pascal@20185 | 57 cp -a $install/usr/bin $fs/usr |
pascal@20185 | 58 cp -a $install/usr/lib/*.so $fs/usr/lib |
al@13066 | 59 |
pascal@20185 | 60 cp -a $install/usr/share/abiword-* $fs/usr/share |
al@13066 | 61 |
pascal@20185 | 62 # Non standard pixmap |
al@13066 | 63 |
pascal@20185 | 64 # fix error when abiword is run in command line |
pascal@20185 | 65 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png |
al@13066 | 66 |
pascal@20185 | 67 # Non-standard locale use: get all official SliTaz locales |
pascal@20185 | 68 rm $fs/usr/share/abiword-*/strings/* |
pascal@20185 | 69 rm $fs/usr/share/abiword-*/templates/* |
pascal@20185 | 70 rm $fs/usr/share/abiword-*/system.pro* |
al@13066 | 71 |
pascal@20185 | 72 for LOCALE in $LOCALES; do |
pascal@20185 | 73 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \ |
pascal@20185 | 74 $fs/usr/share/abiword-*/strings/ |
pascal@20185 | 75 # id locale not complete in sources |
pascal@20185 | 76 if [ "$LOCALE" != "id" ]; then |
pascal@20185 | 77 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \ |
pascal@20185 | 78 $fs/usr/share/abiword-*/templates/ |
pascal@20185 | 79 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \ |
pascal@20185 | 80 $fs/usr/share/abiword-*/ |
pascal@20185 | 81 fi |
pascal@20185 | 82 done |
al@13066 | 83 |
pascal@20185 | 84 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/ |
pascal@20185 | 85 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/ |
pascal@20185 | 86 ;; |
pascal@20185 | 87 abiword-dev) |
pascal@20185 | 88 CAT="development|Abiword devel files" |
pascal@20185 | 89 DEPENDS="pkg-config" |
pascal@20185 | 90 mkdir -p $fs/usr/lib/abiword-2.8/plugins |
pascal@20185 | 91 cp -a $install/usr/lib/*.*a $fs/usr/lib |
pascal@20185 | 92 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@20185 | 93 cp -a $install/usr/lib/abiword-*/plugins/*.*a \ |
pascal@20185 | 94 $fs/usr/lib/abiword-2.8/plugins |
pascal@20185 | 95 cp -a $install/usr/include $fs/usr |
pascal@20185 | 96 ;; |
pascal@20185 | 97 abiword-plugins) |
pascal@20185 | 98 CAT="office|Extra plugins for Abiword (MSWord, OpenDocument, Wikidepia, etc)." |
pascal@20185 | 99 TAGS="doc odf docx" |
pascal@20185 | 100 DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt" |
pascal@20185 | 101 mkdir -p $fs/usr/lib/abiword-2.8/plugins $fs/usr/share |
pascal@20185 | 102 |
pascal@20185 | 103 cp -a $install/usr/lib/abiword-*/plugins/*.so \ |
pascal@20185 | 104 $fs/usr/lib/abiword-2.8/plugins |
pascal@20185 | 105 |
pascal@20185 | 106 ;; |
pascal@20185 | 107 esac |
pankso@46 | 108 } |