wok view goffice-gtk2/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents 6831608a1b2a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="goffice-gtk2"
4 SOURCE="goffice"
5 VERSION="0.8.17"
6 CATEGORY="libs"
7 SHORT_DESC="GOffice is a library of document-centric objects and utilities"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://gitlab.gnome.org/GNOME/goffice/"
12 WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL"
14 DEPENDS="gtk+ libgsf libglade libart_lgpl xorg-libXdamage"
15 BUILD_DEPENDS="gtk+-dev libxml2-dev libgsf libgsf-dev libglade-dev intltool \
16 expat-dev bzip2-dev librsvg-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # remove a reference to pcre_info, a deprecated function
28 # that was removed from PCRE-8.30
29 sed -i 's#info (r, NULL#full&, 0#' goffice/utils/regutf8.c &&
30 ./configure \
31 --with-html-dir=/usr/share/doc \
32 --disable-static \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_files *.so* *.xml *.xsl README
41 }