wok-6.x annotate libgnomeprint/receipt @ rev 24697
updated kbd, kbd-base, kbd-busybox and kbd-vlock (2.2.0 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 13 17:45:34 2022 +0100 (2022-03-13) |
parents | a3b001408630 |
children | e01f84a448f7 |
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@12612 | 15 libxml2-dev" |
pankso@9768 | 16 |
pascal@24111 | 17 current_version() |
pascal@24111 | 18 { |
pascal@24111 | 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 21 } |
pascal@24111 | 22 |
pankso@37 | 23 # Rules to configure and make the package. |
pankso@37 | 24 compile_rules() |
pankso@37 | 25 { |
pascal@23056 | 26 # Update for Bison 3 |
pascal@23056 | 27 sed -e '/YYPARSE_PARAM/d' -e 's|yyerror (|&graph_t *g, |' \ |
pascal@23055 | 28 -e 's|%pure_parser|&\n%parse-param { graph_t *graph }|' \ |
pascal@23055 | 29 -i libgnomeprint/grammar.y |
pascal@23055 | 30 |
pankso@37 | 31 ./configure \ |
pankso@37 | 32 --with-html-dir=/usr/share/doc \ |
slaxemulator@10210 | 33 --without-cups \ |
slaxemulator@10210 | 34 $CONFIGURE_ARGS && |
pankso@9768 | 35 make && make install |
pankso@37 | 36 } |
pankso@37 | 37 |
pankso@37 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@37 | 39 genpkg_rules() |
pankso@37 | 40 { |
pankso@37 | 41 mkdir -p $fs/usr/lib $fs/usr/share/locale |
pankso@37 | 42 |
pankso@37 | 43 # Copy shared libs |
pascal@14714 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@14714 | 45 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
pankso@37 | 46 |
pascal@14714 | 47 cp -a $install/usr/share/locale/fr $fs/usr/share/locale |
pascal@14714 | 48 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
pankso@37 | 49 |
pankso@37 | 50 # Remove static libs |
pankso@37 | 51 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*.*a |
pankso@37 | 52 rm $fs/usr/lib/$PACKAGE/$VERSION/modules/*/*.*a |
pankso@37 | 53 } |
pankso@37 | 54 |