wok annotate gnumeric/receipt @ rev 25101
Use archive.org for some broken wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 21 15:09:15 2022 +0000 (2022-06-21) |
parents | 6831608a1b2a |
children | 4c101652eb90 |
rev | line source |
---|---|
pankso@566 | 1 # SliTaz package receipt. |
pankso@566 | 2 |
pankso@566 | 3 PACKAGE="gnumeric" |
al@19466 | 4 VERSION="1.12.32" |
pankso@566 | 5 CATEGORY="office" |
pankso@566 | 6 SHORT_DESC="Office Spreadsheet application." |
pankso@566 | 7 MAINTAINER="pankso@slitaz.org" |
al@19466 | 8 LICENSE="GPL" |
Hans-G?nter@25085 | 9 WEB_SITE="http://www.gnumeric.org/" |
Hans-G?nter@25085 | 10 |
al@19466 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19466 | 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
pankso@566 | 13 |
Hans-G?nter@25085 | 14 DEPENDS="at-spi2 at-spi2-atk atk bzlib cairo dconf dbus fontconfig freetype |
Hans-G?nter@25085 | 15 gdk-pixbuf glib glibc-base goffice gtk+3 harfbuzz libcroco libffi |
Hans-G?nter@25085 | 16 libgio libgsf libpng librsvg libxcb libxml2 libxslt pango pcre |
Hans-G?nter@25085 | 17 pixman util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 xorg-libXau |
Hans-G?nter@25085 | 18 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp |
Hans-G?nter@25085 | 19 xorg-libXext xorg-libXfixes xorg-libXi xorg-libXinerama |
Hans-G?nter@25085 | 20 xorg-libXrandr xorg-libXrender zlib" |
Hans-G?nter@25085 | 21 BUILD_DEPENDS="bison goffice-dev gtk-doc gtk+3-dev libcroco-dev rarian" |
slaxemulator@11161 | 22 |
pascal@24111 | 23 current_version() |
pascal@24111 | 24 { |
pascal@24111 | 25 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 26 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 27 } |
pascal@24111 | 28 |
pankso@566 | 29 # Rules to configure and make the package. |
pankso@566 | 30 compile_rules() |
pankso@566 | 31 { |
Hans-G?nter@25085 | 32 ./configure \ |
Hans-G?nter@25085 | 33 --without-perl \ |
Hans-G?nter@25085 | 34 --without-python \ |
Hans-G?nter@25085 | 35 --without-gda \ |
pascal@1524 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@25085 | 37 make && |
Hans-G?nter@25085 | 38 make install |
pankso@566 | 39 } |
pankso@566 | 40 |
pankso@566 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@566 | 42 genpkg_rules() |
pankso@566 | 43 { |
Hans-G?nter@25085 | 44 mkdir -p $fs/usr/lib |
Hans-G?nter@25085 | 45 mkdir -p $fs/usr/share |
pankso@4166 | 46 |
al@18531 | 47 cp -a $install/usr/bin $fs/usr |
al@18531 | 48 |
al@18531 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@18531 | 50 cp -a $install/usr/lib/gnumeric $fs/usr/lib |
al@19468 | 51 cp -a $install/usr/lib/goffice $fs/usr/lib |
al@18531 | 52 find $fs/usr/lib -name '*.la' -delete |
al@18531 | 53 |
al@18531 | 54 cp -a $install/usr/share/applications $fs/usr/share |
al@18531 | 55 cp -a $install/usr/share/glib-2.0 $fs/usr/share |
al@18531 | 56 cp -a $install/usr/share/gnumeric $fs/usr/share |
al@18531 | 57 cp -a $install/usr/share/icons $fs/usr/share |
al@18531 | 58 cp -a $install/usr/share/pixmaps $fs/usr/share |
al@18531 | 59 find $fs/usr/share/pixmaps -name '*.ico' -delete |
pankso@566 | 60 } |