wok annotate libgnomeprint/receipt @ rev 24995

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