wok annotate libgnomecanvasmm/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 4904e3d374a9
children eeba7ab1dffe
rev   line source
slaxemulator@13120 1 # SliTaz package receipt.
slaxemulator@13120 2
slaxemulator@13120 3 PACKAGE="libgnomecanvasmm"
slaxemulator@13120 4 VERSION="2.26.0"
slaxemulator@13120 5 CATEGORY="x-window"
slaxemulator@13120 6 SHORT_DESC="A C++ wrapper for libgnomecanvas."
slaxemulator@13120 7 MAINTAINER="slaxemulator@gmail.com"
pascal@14714 8 LICENSE="LGPL2.1"
slaxemulator@13120 9 WEB_SITE="http://gtkmm.sourceforge.net/"
slaxemulator@13120 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@13120 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
slaxemulator@13120 12
slaxemulator@13120 13 DEPENDS="gtkmm libgnomecanvas"
slaxemulator@13120 14 BUILD_DEPENDS="gtkmm-dev libgnomecanvas-dev"
slaxemulator@13120 15
slaxemulator@13120 16 # Rules to configure and make the package.
slaxemulator@13120 17 compile_rules()
slaxemulator@13120 18 {
pascal@14739 19 sed -i 's|.*glibmm/propertyproxy.h|#include <gtkmm.h>\n&|' \
pascal@14739 20 libgnomecanvas/libgnomecanvasmm/properties.h
pascal@14739 21 sed -i 's|gtkmm/main|gtkmm|' \
pascal@14739 22 demos/canvas.cc \
pascal@14739 23 libgnomecanvas/libgnomecanvasmm/init.cc \
pascal@14739 24 examples/canvas_affine/canvas_affine.cc \
pascal@14739 25 examples/canvas_events/canvas_events.cc
slaxemulator@13120 26 ./configure \
slaxemulator@13120 27 --sysconfdir=/etc \
slaxemulator@13120 28 --localstatedir=/var \
slaxemulator@13120 29 $CONFIGURE_ARGS &&
slaxemulator@13120 30 make && make install
slaxemulator@13120 31 }
slaxemulator@13120 32
slaxemulator@13120 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@13120 34 genpkg_rules()
slaxemulator@13120 35 {
slaxemulator@13120 36 mkdir -p $fs/usr/lib
slaxemulator@13120 37 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@13120 38 }