wok-current view inkscape/receipt @ rev 2517

h*-k*: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 16 22:05:40 2009 +0000 (2009-03-16)
parents 91a81354feee
children 519ee78a7bda
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.45.1"
5 CATEGORY="graphics"
6 SHORT_DESC="Vector drawing application."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt PyXML \
9 xorg-libXdamage"
10 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev gtkmm-dev popt-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://www.inkscape.org/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 grep -rl glib/gmessages . | while read file; do
20 echo "Patching $file..."
21 sed -i 's|glib/gmessages|glib|' $file
22 done
23 ./configure \
24 --prefix=/usr \
25 --mandir=/usr/share/man \
26 --disable-lcms \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/locale
36 cp -a $_pkg/usr/bin $fs/usr
37 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
38 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
40 # Copy all Inkscape files and remove tutorials (19,2 Mb),
41 # examples + screens
42 cp -a $_pkg/usr/share/inkscape $fs/usr/share
43 rm -rf $fs/usr/share/inkscape/tutorials
44 rm -rf $fs/usr/share/inkscape/examples
45 rm -rf $fs/usr/share/inkscape/screens/keys.de.svg
46 rm -rf $fs/usr/share/inkscape/screens/keys.sl.svg
48 strip -s $fs/usr/bin/* 2>/dev/null
49 }