wok annotate abiword/receipt @ rev 24353

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 03 12:55:23 2022 +0000 (2022-02-03)
parents dcaa989c1de7
children 88afc2f95640
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 \
al@19275 17 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base \
al@19275 18 librsvg 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
pascal@24353 24 # What is the latest version available today?
pascal@24353 25 current_version()
pascal@24353 26 {
pascal@24353 27 wget -O - http://www.abisource.com/downloads/abiword/$( \
pascal@24353 28 wget -O - http://www.abisource.com/downloads/abiword/ 2>/dev/null | \
pascal@24353 29 sed "/latest/d;/\[DIR/!d;s|.*href=.\\([0-9\.]\\)/.*|\\1|" | sort -Vr | sed q)/source/ 2>/dev/null | \
pascal@24353 30 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24353 31 }
pascal@24353 32
pascal@24353 33 # Rules to configure and make the package.
al@13066 34 # Rules to configure and make the package.
pankso@46 35 compile_rules()
pankso@46 36 {
pascal@12875 37 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
pascal@12875 38 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
pascal@12875 39 sed -i 's|--no-undefined||' src/Makefile*
pascal@13828 40 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile*
pascal@21153 41 sed -i 's|TRUE|boolean(TRUE)|' src/af/util/xp/ut_jpeg.cpp
pankso@46 42 ./configure \
pankso@46 43 --prefix=/usr \
pankso@46 44 --infodir=/usr/share/info \
pankso@46 45 --mandir=/usr/share/man \
jozee@5272 46 --enable-plugins \
jozee@5272 47 --enable-clipart \
jozee@5272 48 --enable-templates \
jozee@5272 49 --disable-collab-backend-sugar \
pascal@4998 50 $CONFIGURE_ARGS &&
gokhlayeh@11574 51 make $MAKEFLAGS &&
pascal@15002 52 make DESTDIR=$DESTDIR install
jozee@5272 53
jozee@5272 54 cd plugins
pascal@15002 55 make DESTDIR=$DESTDIR install
pankso@46 56 }
pankso@46 57
pankso@46 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@46 59 genpkg_rules()
pankso@46 60 {
slaxemulator@7481 61 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
al@13066 62
pascal@15002 63 cp -a $install/usr/bin $fs/usr
pascal@15002 64 cp -a $install/usr/lib/*.so $fs/usr/lib
al@13066 65
pascal@15002 66 cp -a $install/usr/share/abiword-* $fs/usr/share
al@13066 67
pankso@3853 68 # Non standard pixmap
pascal@15002 69 cp $install/usr/share/icons/abiword_48.png \
pankso@46 70 $fs/usr/share/pixmaps/abiword.png
al@13066 71
slaxemulator@7481 72 # fix error when abiword is run in command line
slaxemulator@7481 73 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
al@13066 74
al@13066 75 # Non-standard locale use: get all official SliTaz locales
jozee@2800 76 rm $fs/usr/share/abiword-*/strings/*
jozee@2800 77 rm $fs/usr/share/abiword-*/templates/*
jozee@2800 78 rm $fs/usr/share/abiword-*/system.pro*
al@13066 79
al@13066 80 for LOCALE in $LOCALES; do
pascal@15002 81 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \
al@13066 82 $fs/usr/share/abiword-*/strings/
al@13066 83 # id locale not complete in sources
al@13066 84 if [ "$LOCALE" != "id" ]; then
pascal@15002 85 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \
al@13066 86 $fs/usr/share/abiword-*/templates/
pascal@15002 87 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \
al@13066 88 $fs/usr/share/abiword-*/
al@13066 89 fi
al@13066 90 done
al@13066 91
pascal@15002 92 cp $install/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
pascal@15002 93 cp $install/usr/share/abiword-*/system.profile $fs/usr/share/abiword-*/
pankso@46 94 }