wok-next annotate 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 |
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" |
al@20500 | 6 SHORT_DESC="Light and speed word processing application" |
pankso@46 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20500 | 9 WEB_SITE="http://www.abisource.com/" |
al@20500 | 10 |
pascal@15002 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@15002 | 12 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL" |
al@20500 | 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 \ |
al@20500 | 14 ru sl sv tr uk vi zh" |
pascal@15002 | 15 |
psychomaniak@20013 | 16 BUILD_DEPENDS="$DEPENDS gtk+3-dev pygobject-dev gobject-introspection-dev \ |
psychomaniak@20013 | 17 pygobject3 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev \ |
psychomaniak@20014 | 18 libgsf-dev enchant-dev wv-dev libcroco-dev libboost-dev librsvg-dev gtk-doc \ |
psychomaniak@20014 | 19 bison goffice-dev intltool gettext xorg-dev zlib-dev " |
al@20500 | 20 # libgnomeprint-dev libgnomeprintui-dev libgnomecanvas-dev |
al@20500 | 21 SPLIT="abiword-plugins abiword abiword-dev" |
pankso@46 | 22 |
al@20500 | 23 compile_rules() { |
pascal@12875 | 24 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h |
pascal@12875 | 25 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h |
pascal@12875 | 26 sed -i 's|--no-undefined||' src/Makefile* |
pascal@13828 | 27 sed -i 's|cat \$(BUILTIN_STAMP)|& 2> /dev/null|' src/plugins/Makefile* |
al@20500 | 28 |
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 && |
al@20500 | 39 make DESTDIR=$DESTDIR install || return 1 |
al@20500 | 40 |
jozee@5272 | 41 cd plugins |
pascal@15002 | 42 make DESTDIR=$DESTDIR install |
pankso@46 | 43 } |
pankso@46 | 44 |
al@20500 | 45 genpkg_rules() { |
pascal@20185 | 46 case $PACKAGE in |
al@20500 | 47 abiword-plugins) |
al@20500 | 48 copy plugins/*.so |
al@20500 | 49 CAT="office|extra plugins: MSWord, OpenDocument, Wikidepia, etc." |
al@20500 | 50 DEPENDS="abiword glib readline xorg-libXdamage fribidi libxslt" |
al@20500 | 51 TAGS="doc odf docx" |
al@20500 | 52 ;; |
al@20500 | 53 abiword) |
al@20500 | 54 copy @std @rm |
al@20500 | 55 TAGS="word doc office" |
al@20500 | 56 DEPENDS="gtk+3 fribidi libglade popt libxml2 libart_lgpl \ |
pascal@20185 | 57 libgsf glib enchant wv xorg-libXdamage gcc-lib-base \ |
pascal@20185 | 58 librsvg goffice glibc-locale libffi" |
al@20500 | 59 SUGGESTED="abiword-plugins" |
al@13066 | 60 |
al@20500 | 61 # Non-standard locale use: get all official SliTaz locales |
al@20500 | 62 rm $fs/usr/share/abiword-*/strings/* |
al@20500 | 63 rm $fs/usr/share/abiword-*/system.profile-* |
al@20500 | 64 rm $fs/usr/share/abiword-*/templates/normal.awt-* |
al@13066 | 65 |
al@20500 | 66 for LOCALE in $LOCALES; do |
al@20500 | 67 cp $install/usr/share/abiword-*/strings/$LOCALE*.strings \ |
al@20500 | 68 $fs/usr/share/abiword-*/strings/ |
al@20500 | 69 cp $install/usr/share/abiword-*/system.profile-$LOCALE* \ |
al@20500 | 70 $fs/usr/share/abiword-*/ |
pascal@20185 | 71 cp $install/usr/share/abiword-*/templates/normal.awt-$LOCALE* \ |
al@20500 | 72 $fs/usr/share/abiword-*/templates/ |
al@20500 | 73 done 2>/dev/null |
al@20500 | 74 ;; |
al@20500 | 75 abiword-dev) |
al@20500 | 76 copy @dev |
al@20500 | 77 ;; |
pascal@20185 | 78 esac |
pankso@46 | 79 } |