wok annotate gnumeric/receipt @ rev 24111

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