wok view libgnomeprint/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 6831608a1b2a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libgnomeprint"
4 VERSION="2.18.8"
5 CATEGORY="x-window"
6 SHORT_DESC="GNOME print library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS="gtk+ popt libxml2 libart_lgpl"
14 BUILD_DEPENDS="pkg-config glib-dev pango-dev intltool flex libart_lgpl-dev \
15 libxml2-dev freetype-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Update for Bison 3
28 sed -e '/YYPARSE_PARAM/d' -e 's|yyerror (|&graph_t *g, |' \
29 -e 's|%pure_parser|&\n%parse-param { graph_t *graph }|' \
30 -i libgnomeprint/grammar.y
32 ./configure \
33 --with-html-dir=/usr/share/doc \
34 --without-cups \
35 $CONFIGURE_ARGS &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/usr/share/locale
44 # Copy shared libs
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
48 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
49 cp -a $install/usr/share/$PACKAGE $fs/usr/share
51 # Remove static libs
52 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*.*a
53 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*/*.*a
54 }